* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body and background */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(230, 240, 255, 0.15) 0%, rgba(255, 255, 255, 0) 20%),
        radial-gradient(circle at 90% 80%, rgba(200, 220, 255, 0.1) 0%, rgba(255, 255, 255, 0) 20%);
}

/*sidebar*/
.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: #e6f3ff;
    color: #0066cc;
    border-radius: 10px;
    text-decoration: none;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    z-index: 1001;
}

/* Header */
header {
    overflow-x: hidden;
    background-color: #ffffff;
    color: #333;
    padding: 25px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    font-family: 'Montserrat', sans-serif;
    position: relative;
    display: block;
    height: auto;
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
}

nav {
    padding-bottom: 15px;
    width: 100%;
    position: relative;
}

header .logo {
    font-size: 35px;
    text-align: left;
    margin-left: 50px;
    float: left;
    white-space: nowrap;
}

header .logo a {
    text-decoration: none;
    color: #796e6e;
    display: inline-block;
}

header nav ul {
    list-style-type: none;
    display: flex;
    justify-content: flex-end;
    margin-right: 30px;
    float: right;
    margin-top: 15px;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    padding: 10px;
}

header nav ul li a:hover {
    background-color: #000000; /* Màu nền khi hover */
    color: #fff; /* Màu chữ khi hover */
    border-radius: 20px;
    text-decoration: none;
}

/* Add these styles to hide the play button and adjust the search bar */
.play-button, 
button[type="submit"] {
    display: none;
}

input[type="text"], 
input[type="search"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
}

input[type="text"]:focus,
input[type="search"]:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 5px rgba(0, 102, 204, 0.2);
}

/* You might need to adjust the form or search container */
.search-container,
form {
    display: flex;
    width: 100%;
    margin-bottom: 20px;
}

.sidebar .list{
    display: none;
}

.sidebar{
    display: none;
}

/* Container styles */
.container {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 20px auto;
}

/* Control group styles */
.control-group {
    background-color: #f8f9fa;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

/* Button styles */
button {
    background: linear-gradient(45deg, #0066cc, #0099ff);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    background: linear-gradient(45deg, #0052a3, #007acc);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Complete mobile responsiveness overhaul */
@media screen and (max-width: 768px) {
    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }
    
    header {
        padding: 15px 0;
        text-align: center;
        width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    header .logo {
        float: none;
        text-align: center;
        margin: 0 auto 10px;
        display: block;
        font-size: 28px;
        width: auto;
        padding: 0;
    }
    
    header nav {
        width: 100%;
        display: block;
        margin: 0;
        padding: 0;
    }
    
    /* Existing mobile styles */
    
    header nav ul {
        justify-content: center;
        float: none;
        margin: 10px auto;
        flex-wrap: nowrap;
        width: 100%;
        padding: 0;
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    header nav ul li {
        margin: 5px 8px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    header nav ul li a {
        font-size: 12px;
        padding: 8px;
    }
    
    /* Additional iPhone X specific fixes */
    @media screen and (max-width: 375px) {
        header nav {
            padding: 0 5px;
        }
    }
}
    
    .container {
        padding: 10px;
        width: 100%;
        margin: 0 auto;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    main {
        padding: 0;
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Fix for any potential transform or positioning issues */
    .container, main, header, body {
        transform: none;
    }
    
    /* Ensure all content is properly centered */
    .controls-area, #staff-container, .note-info {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Ensure buttons and inputs are properly sized */
    button, input {
        max-width: 100%;
        box-sizing: border-box;
    }

/* Tech grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 102, 204, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 204, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
    pointer-events: none;
}
