/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat Vietnamese', 'Montserrat', sans-serif;
    background-color: #f4f4f4;
}

/* Header */
header {
    overflow-x: hidden;
    background-color: #ffffff;
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif;
}
#fileList {
    list-style: none;
    padding: 0;
    margin: 0;
}

#fileList li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    list-style-type: none; /* Explicitly remove bullets */
}

#fileList li:last-child {
    border-bottom: none;
}

#fileList a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 5px 0;
    font-size: 16px;
}
.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    z-index: 1001; /* Ensure suggestions appear above other content */
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid #ccc;
    border-radius: 24px;
    font-size: 16px;
    outline: none;
    background: #fff;
}

.search-input:focus {
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    border-color: transparent;
}

.suggestions-container {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}
.suggestion-item {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.suggestion-item::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 12px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23606060"><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;

}
.suggestion-item:hover {
    background-color: #f1f3f4;
}
nav {
    border-bottom: 1px solid #dbd9d9;
    padding-bottom: 30px;
}

header .logo h1 {
    font-size: 28px;
    margin: 0;
}

header .logo {
    font-size: 35px;
    text-align: left;
    margin-left: 50px;
}

header .logo a {
    text-decoration: none;
    color: #796e6e;
}

header nav ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    margin-top: -30px;
    margin-right: -20px;
}

header nav ul li {
    margin: 0 10px;
}

header nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    padding: 10px;
}

header nav ul li a:hover {
    background-color: #000000;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
}

@media screen and (min-width: 1200px) {
    /* Desktop styles */
    header nav ul {
        justify-content: flex-end;
        flex-direction: row;
    }

    header nav ul li {
        margin: 0 20px;
    }

    header nav ul li a {
        margin-top: 20px;
        font-size: 14px;
    }

    .hamburger {
        display: none;
    }
    .sidebar{
        display: none;
    }
}

@media screen and (max-width: 1200px) {
    /* Mobile styles */
    .hamburger {
        position: relative;
        margin-left: -10px;
    }

    header nav ul {
        justify-content: center;
        flex-direction: row;
        margin: 15px;
        gap: 1.5rem;
    }

    header nav ul li {
        margin: 0 10px;
    }

    header nav ul li a {
        font-size: 14px;
    }

    header .logo {
        font-size: 30px;
        text-align: center;
        margin-bottom: 5px;
        margin-left: 10px;
    }

    /* Sidebar styles for mobile */
    .sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 70%;
        height: 100%;
        background-color: #fff;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        z-index: 9999;
        overflow-y: auto;
        padding-top: 60px;
        transition: transform 0.3s ease;
        transform: translateX(-100%);
    }

    .sidebar.active {
        display: block;
        transform: translateX(0);
    }

    .sidebar ul {
        list-style: none;
        padding: 0;
        text-align: center;
    }

    .sidebar ul li {
        margin: 10px 0;
    }

    .sidebar ul li a {
        text-decoration: none;
        font-size: 18px;
        color: #333;
        display: block;
        padding: 10px 0;
    }

    .sidebar .list {
        color: #333;
        border: none;
        margin-top: 10px;
        width: 150px;
        cursor: pointer;
        border-radius: 20px;
        margin-bottom: 5px;
        font-family: 'Montserrat', sans-serif;
        border: 0.5px solid #877f7f;
        height: 50px;
        background-color: transparent;
        transition: all 0.3s ease;
    }

    .sidebar .list a {
        display: block;
        text-align: center;
        line-height: 50px;
        border-radius: 30px;
        transition: all 0.3s ease;
        width: 150px;
        height: 50px;
        text-decoration: none;
        color: #333;
        margin-top: -10px;
    }

    .sidebar .list:hover {
        background-color: #000000;
    }

    .sidebar .list:hover a {
        color: #fff;
    }
}

@media screen and (max-width: 768px) {
 
    /* Header adjustments for mobile */
    body > header {
        padding: 0.5rem 0;
        margin-bottom: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    body > header .logo {
        font-size: 1.5rem;
        text-align: center;
        margin: 0;
        padding: 0.5rem 15px;
        width: 100%;
    }

    body > header nav {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 0.5rem;
        border-bottom: 1px solid #dbd9d9;
        padding-bottom: 10px;
    }

    body > header nav ul {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 60px 0 20px;  /* Adjust padding to move items left */
        margin: 0;
        gap: 15px;
    }

    body > header nav ul li:not(.hamburger-container) {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }

    .hamburger-container {
        position: absolute;  /* Change from fixed to absolute */
        right: 10px;
        top: 40%;          /* Center vertically relative to its container */
        transform: translateY(-50%);z
        z-index: 1000;
    }

    body > header nav ul li a {
        font-size: 0.9rem;
        padding: 0.8rem 0.6rem;
        display: inline-block;
        white-space: nowrap;
        color: #333;
        text-align: center;
    }

    /* Hamburger menu adjustments */
    .hamburger {
        width: 24px;
        height: 24px;
        margin: 0;      /* Remove margin */
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
    }

    .hamburger .line {
        width: 24px;
        height: 2px;
        background-color: #333;
        margin: 2px 0;
    }

    /* Main content adjustments for mobile */
    body > main {
        margin-top: 0;
        width: 100%;
        overflow-x: hidden;
    }

    /* Content wrapper adjustments */
    .content-wrapper {
        flex-direction: column;
        padding: 15px;
        gap: 30px;
        width: 100%;
        margin: 0;
    }

    /* File content container adjustments */
    .file-content-container {
        font-family: 'Montserrat Vietnamese', 'Montserrat', sans-serif;
        padding: 20px;
        font-size: 16px;
        min-width: 100%;
        width: 100%;
        margin: 0 0 20px 0;
        box-sizing: border-box;
    }

    /* Video sidebar adjustments */
    .video-sidebar {
        min-width: 100%;
        width: 100%;
        padding: 20px;
        margin: 0;
        box-sizing: border-box;
    }

    /* Placeholder suggestions adjustments */
    .placeholder-suggestions {
        width: 100%;
        padding: 15px;
        gap: 30px;
        margin-bottom: 30px;
    }

    .placeholder-item {
        width: 100%;
        margin-bottom: 30px;
        padding: 15px;
        box-sizing: border-box;
    }

    .placeholder-item:last-child {
        margin-bottom: 0;
    }

    .placeholder-item img {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin-bottom: 15px;
    }

    .suggestion-item {
        width: 100%;
        margin-bottom: 30px;
        padding: 15px;
    }

    .suggestion-item:last-child {
        border-bottom: none;
    }

    /* Controls container adjustments */
    .controls-container {
        padding: 15px;
        margin: 0 0 20px 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* Search form adjustments */
    .search-form {
        padding: 15px;
        margin: 0 0 20px 0;
        width: 100%;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 480px) {
    body > header nav ul li a {
        padding: 0.6rem 0.4rem;
        font-size: 0.85rem;
    }
}

/* Controls bar */
.controls-container {
    display: none;  /* Hidden by default */
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    height: 50px;
    background: #fff;
    border: none;
    padding: 0 40px;
    margin: 20px auto 0;  /* Reduced from 60px to 20px */
    max-width: 1800px;
}
.controls-container > div:first-child {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 36px;
    border-radius: 8px;
    padding: 5px 10px;
    background-color: #f9f9f9;
}

/* Show controls when active */
.controls-container.show {
    display: flex;
}
/* Button groups */
.note-controls,
.font-size-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 36px;
   
}

/* Video controls specific */
.video-controls {
    display: none;  /* Hide the video controls section */
}

/* All buttons base style */

.video-toggle-btn,
.search-button {
    height: 36px;
    width: 100px;
    padding: 0;
    font-size: 14px;
    color: white;
    background-color: #000000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Video button specific */
#toggleVideoBtn,
.video-toggle-btn {
    margin: 0 auto; /* Center horizontally */
    height: 40px;
    width: 250px; /* Increased from 150px to 250px */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    font-size: 15px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

#toggleVideoBtn:hover,
.video-toggle-btn:hover {
    background-color: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Note buttons special size */
.note-controls button {
    width: 40px;
    min-width: 40px;
    height: 36px;
}

/* Current note display */
#currentNote {
    height: 36px;
    width: 40px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #dc3545;
    font-weight: 500;
}

/* Remove old note display */
.note-display {
    display: none;
}

/* Remove video controls margin */
.video-controls {
    margin-left: 0;
}

/* Search form - now below controls */
.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 1800px;
    margin: 20px auto; /* Reduced from 40px to 20px */
    padding: 0 40px;
}

.search-input {
    flex: 1;
    height: 36px;
    padding: 0 15px;
    font-size: 14px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.note-display p {
    height: 36px;
    width: 40px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #dc3545;
    font-weight: 500;
}

/* Main content */
main {
    margin-top: 0;
    padding: 0;
}

/* Content wrapper */
.content-wrapper {
    display: flex;
    gap: 40px;
    margin: 0 auto;
    padding: 0 40px;
    min-height: calc(100vh - 180px);
    overflow: visible;
    width: 100%;
    max-width: 1800px;
    position: static;
}
/* File content */
.file-content-container {
    font-family: 'Montserrat Vietnamese', 'Montserrat', sans-serif;
    display: none; /* Hidden by default */
    flex: 3;
    overflow: visible;
    padding: 20px 30px;
    font-size: 20px;
    line-height: 1.6;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    color: #333;
    text-align: left !important;
    min-width: 0;
    position: relative;
}

/* When file content is shown */
.file-content-container[style*="display: block"] {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Force left alignment for lyrics content */
.file-content-container * {
    text-align: left !important;
}

.file-content-container pre,
.file-content-container p {
    text-align: left !important;
    margin: 0;
    padding: 0;
}

/* Lyrics line spacing */
.file-content-container pre {
    font-family: 'Montserrat Vietnamese', 'Montserrat', sans-serif;
    line-height: 2;
    white-space: pre-wrap;
    word-wrap: break-word;
    padding: 0;
}

/* Video sidebar */
.video-sidebar {
    display: none;  /* Hidden by default */
    flex: 2;
    background: white;
    border-left: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    min-width: 600px;
    flex-direction: column;
    margin: 0;
    max-width: none;
    align-items: center; /* Center items horizontally */
}

/* Placeholder suggestions styles */
.placeholder-suggestions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.placeholder-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0,0,0,0.12);
    padding: 12px;
}

.placeholder-item img {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.placeholder-info {
    width: 100%;
    max-width: 560px;
    text-align: center;
    padding: 10px 0;
}

.placeholder-title {
    font-size: 16px;
    color: #333;
    margin: 0;
    line-height: 1.4;
    text-align: center;
}

/* Update video container to be hidden initially */
#videoContainer {
    display: none;
    padding: 20px;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    min-height: 200px;
    justify-content: center;
}

#videoContainer h3 {
    font-size: 18px;
    margin: 0;
    color: #333;
    line-height: 1.4;
    font-weight: 500;
    display: block;
    overflow: visible;
    white-space: normal;
}

#videoContainer p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.video-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 16px 0 8px 0;
    line-height: 1.4;
    display: block;
}

.video-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.channel-title {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.view-count {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Search results */
.search-results-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    border: 1px solid #626262;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    background-color: #fff;
    z-index: 100;
    scroll-margin-top: 70px; /* Adds margin for scrollIntoView to prevent header overlap */
}

.search-results-container h2 {
    color: #000000;
    font-size: 16px;
    margin-bottom: 10px;
}

.search-results-container a {
    display: block;
    margin: 5px 0;
    text-decoration: none;
    color: #000000;
}

.search-results-container a:hover {
    text-decoration: underline;
}

/* Hover states */
button:hover,
.video-toggle-btn:hover,
.search-button:hover,
.xemvideo:hover {
    background-color: #333333;
}
.note-controls button,
.font-size-controls button,
#currentNote {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    padding: 10px;
    background: none;
    border: 0.5px solid #877f7f;  /* Add border */
    border-radius: 20px;          /* Add border radius */
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;    /* Smooth transition */
}

/* Style the current note display to match */
#currentNote {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    color: #333;
    font-weight: normal;
    margin: 0;
    width: auto;
    height: auto;
    min-width: 40px;  /* Ensure minimum width */
}

/* Add hover effect to match nav menu */
.note-controls button:hover,
.font-size-controls button:hover {
    background-color: #000000;
    color: #fff;
    border-color: #000000;  /* Match border color on hover */
    text-decoration: none;
}
.note-controls button:nth-child(2) {
    background-color: #E74C3C;
    color: white;
    border: none;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Style for B, #, and font size buttons */
.note-controls button:nth-child(1),
.note-controls button:nth-child(3),
.font-size-controls button {
    background-color: #000000;
    color: white;
    border: none;
    font-weight: 500;
}

/* Hover effects */
.note-controls button:nth-child(2):hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.note-controls button:nth-child(1):hover,
.note-controls button:nth-child(3):hover,
.font-size-controls button:hover {
    background-color: #333333;
    transform: translateY(-2px);
}
/* Adjust controls container */
.controls-container {
    padding: 10px 40px;
    gap: 10px;
}

/* Adjust button groups spacing */
.note-controls,
.font-size-controls {
    gap: 10px;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .controls-container {
        margin: 80px 20px 0;
        height: auto;
        padding: 10px 20px;
    }
    
    .search-form {
        margin: 20px;
    }
    
    .video-sidebar {
        position: static;
        width: 100%;
        max-width: none;  /* Allow full width */
        margin: 0;
    }
    
    .file-content-container {
        width: 100%;
        margin: 0;
    }
}
@media (max-width: 768px) (min-width: 768px){
    .search-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-input {
        flex: 1;
        height: 70px;
        
        font-size: 14px;
        border: 1px solid #dee2e6;
        border-radius: 4px;
    }
    
    main {
        margin-top: 150px;
    }
    
    .controls-container {
        height: auto;
        padding: 10px;
        flex-wrap: wrap;
    }
    
    .file-content-container {
        padding: 15px 15px 15px 30px;
        margin: 20px 10px;
    }
}

/* Lyrics color notation */
[c], .c {
    color: #E74C3C;  /* Red */
}

[f], .f {
    color: #2ECC71;  /* Green */
}

[g], .g {
    color: #3498DB;  /* Blue */
}

[am], .am {
    color: #9B59B6;  /* Purple */
}

[dm], .dm {
    color: #E67E22;  /* Orange */
}

[em], .em {
    color: #1ABC9C;  /* Turquoise */
}

/* Make chord notation bold */
[c], [f], [g], [am], [dm], [em],
.c, .f, .g, .am, .dm, .em {
    font-weight: bold;
    font-family: monospace;
}

/* Video suggestions */
.video-suggestions {
    margin: 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;  /* Increased from 16px to 20px */
    overflow-x: hidden;
}
.video-suggestions .suggestion-item::before {
    display: none;
}


.suggestion-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.suggestion-item.active {
    border: 2px solid #1a73e8;
    transform: translateY(-2px);
}

.suggestion-thumbnail {
    width: 280px;  /* Increased from 200px */
    aspect-ratio: 16/9;
    object-fit: cover;
    flex-shrink: 0;
}

.suggestion-info {
    flex: 1;
    padding: 16px 16px 16px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;  /* Space elements evenly */
}

.suggestion-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
    display: block;
    overflow: visible;
    white-space: normal;
    text-overflow: unset;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

.suggestion-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.suggestion-channel {
    padding: 0;
    font-size: 14px;
    color: #666;
    margin-bottom: 0;  /* Remove margin */
}

.suggestion-views {
    padding: 0;
    font-size: 14px;
    color: #666;
}

/* Font size controls */
.font-size-controls {
    display: flex;                                  
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

@media screen and (max-width: 768px) {

    .search-results-container {
        max-height: 400px; /* Increased height for mobile */
        width: 100%;
        margin: 15px 0;
        padding: 15px;
        background-color: #fff;
        border: 1px solid #626262;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        position: relative;
        z-index: 100;
        box-sizing: border-box;
        scroll-margin-top: 50px; /* Increased for mobile to account for larger header */

    }
    
    /* Style for file list inside search results */
    #fileList {
        list-style: none;
        padding: 0;
        margin: 0;
        list-style-type: none; /* Explicitly remove bullets */

    }
    
    #fileList li {
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        list-style-type: none; /* Explicitly remove bullets */
    }
    
    #fileList li:last-child {
        border-bottom: none;
    }
    
    #fileList a {
        display: block;
        color: #333;
        text-decoration: none;
        padding: 5px 0;
        font-size: 16px;
    }
    
    #fileList a:hover {
        color: #000;
        text-decoration: underline;
    }
    
    /* Ensure search results are visible when displayed */
    .search-results-container[style*="display: block"] {
        display: block !important;
    }
    .suggestion-item {
        display: flex;
        flex-direction: row !important;
        align-items: center;
        width: 100%;
        padding: 12px 16px;
        margin-bottom: 10px;
    }
    
    .suggestion-item::before {
        flex-shrink: 0;
        margin-right: 12px;
        width: 16px;
        height: 16px;
    }
 /* Only video suggestions should be column layout */
 .video-suggestions .suggestion-item {
    flex-direction: column !important;
}

/* Remove icon from video suggestions */
.video-suggestions .suggestion-item::before {
    display: none;
}
    .suggestion-info {
        padding: 0 0 0 8px;  /* Add left padding for spacing after icon */
    }

    .suggestion-info {
        flex: 1;
        padding: 0;  /* Remove padding since we have gap */
    }
    .search-input {
        flex: 1;
        height: 40px;
        
        font-size: 14px;
        border: 1px solid #dee2e6;
        border-radius: 4px;
    }
    /* Adjust content wrapper for mobile */
    .content-wrapper {
        flex-direction: column;
        padding: 0 15px;
        gap: 20px;
    }

    /* Adjust file content container for mobile */
    .file-content-container {
        font-size: 20px; /* Keep same font size as desktop */
        padding: 15px;
        margin: 0;
    }

    /* Adjust video sidebar for mobile */
    .video-sidebar {
        min-width: 100%;
        padding: 15px;
    }

    /* Adjust search form for mobile */
    .search-form {
        padding: 10px 15px;
        margin: 0;
    }

    /* Adjust controls container for mobile */
    .controls-container {
        padding: 10px 15px;
        margin: 0;
        flex-wrap: nowrap;
        justify-content: flex-start;
        height: auto;
        width: 100%;
    }
    .note-controls button,
    .font-size-controls button {
        width: 60px;
        min-width: 40px;
        height: 36px;
        padding: 0;
    }

    /* Ensure controls don't wrap */
    .note-controls,
    .font-size-controls {
        flex-wrap: nowrap;
        gap: 5px;
    }
    /* Adjust video button for mobile */
    #toggleVideoBtn,
    .video-toggle-btn {
        width: 100%;
        max-width: 300px;
        margin: 10px auto;
    }

    /* Adjust placeholder items for mobile */
    .placeholder-item img {
        max-width: 100%;
    }

    /* Adjust suggestion items for mobile */
    .suggestion-item {
        flex-direction: column;
        padding: 10px;
    }

    .suggestion-thumbnail {
        width: 100%;
    }

    .suggestion-info {
        padding: 10px 0;
    }
}

/* Hamburger menu styles */
.hamburger {
    position: relative;
    top: 2px;
    width: 6px;
    height: 17px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    cursor: pointer;
}

.hamburger .line {
    width: 20px;
    height: 2px;
    background-color: #a5a5a5;
    border-radius: 5px;
}

@media screen and (min-width: 1200px) {
    
    /* Desktop styles */
    header nav ul {
        justify-content: flex-end;
        flex-direction: row;
    }

    .hamburger {
        display: none; /* Hide hamburger on desktop */
    }

    header nav ul li {
        margin: 0 20px;
    }

    header nav ul li a {
        margin-top: 20px;
        font-size: 14px;
    }
}

@media screen and (max-width: 1200px) {
    /* Mobile styles */
    .hamburger {
        position: relative;
        
    }

    header nav ul {
        justify-content: center;
        flex-direction: row;
        margin: 15px;
        gap: 1.5rem;
    }

    header nav ul li {
        margin: 0 10px;
    }

    header nav ul li a {
        font-size: 14px;
    }

    header .logo {
        font-size: 30px;
        text-align: center;
        margin-bottom: 5px;
        margin-left: 10px;
    }

    /* Sidebar styles for mobile */
    .sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 70%;
        height: 100%;
        background-color: #fff;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        z-index: 9999;
        overflow-y: auto;
        padding-top: 60px;
        transition: transform 0.3s ease;
        transform: translateX(-100%);
    }

    .sidebar.active {
        display: block;
        transform: translateX(0);
    }

    .sidebar ul {
        list-style: none;
        padding: 0;
        text-align: center;
    }

    .sidebar ul li {
        margin: 10px 0;
    }

    .sidebar ul li a {
        text-decoration: none;
        font-size: 18px;
        color: #333;
        display: block;
        padding: 10px 0;
    }

    .sidebar .list {
        color: #333;
        border: none;
        margin-top: 10px;
        width: 150px;
        cursor: pointer;
        border-radius: 20px;
        margin-bottom: 5px;
        font-family: 'Montserrat', sans-serif;
        border: 0.5px solid #877f7f;
        height: 50px;
        background-color: transparent;
        transition: all 0.3s ease;
    }

    .sidebar .list a {
        display: block;
        text-align: center;
        line-height: 50px;
        border-radius: 30px;
        transition: all 0.3s ease;
        width: 150px;
        height: 50px;
        text-decoration: none;
        color: #333;
        margin-top: -10px;
    }

    .sidebar .list:hover {
        background-color: #000000;
    }

    .sidebar .list:hover a {
        color: #fff;
    }
}
/* Sidebar base styles */
.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    text-decoration: none;
    font-size: 18px;
    color: #333;
}

.sidebar ul li a:hover {
    background-color: #000000;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
}

.sidebar h3 {   
    font-size: 20px;
    color: #000;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    z-index: 1001;
}