    /* Reset and Base Styles */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
                     Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        line-height: 1.6;
        color: #202122;
        background-color: #f8f9fa;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    /* Top Navigation Bar */
    .top-nav {
        background-color: #3366cc;
        color: white;
        padding: 0.5rem 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .nav-container {
        max-width: 100%;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 5%;
    }

    .nav-logo a {
        color: white;
        font-size: 1.5rem;
        font-weight: bold;
        text-decoration: none;
    }

    .nav-links a, .nav-user a {
        color: white;
        text-decoration: none;
        margin-left: 1.5rem;
        font-size: 0.9rem;
    }

    .nav-links a:hover, .nav-user a:hover {
        text-decoration: underline;
    }

    /* Search Container */
    .search-container {
        background-color: #eaecf0;
        padding: 1.5rem 0;
        border-bottom: 1px solid #c8ccd1;
    }

    .search-box {
        max-width: 700px;
        margin: 0 auto;
        display: flex;
        padding: 0 5%;
    }

    #search-input {
        flex-grow: 1;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border: 1px solid #a2a9b1;
        border-radius: 2px 0 0 2px;
        outline: none;
    }

    #search-input:focus {
        border-color: #3366cc;
        box-shadow: 0 0 0 2px rgba(51, 102, 204, 0.25);
    }

    #search-btn {
        padding: 0.75rem 1.5rem;
        background-color: #3366cc;
        color: white;
        border: none;
        border-radius: 0 2px 2px 0;
        cursor: pointer;
        font-size: 1rem;
    }

    #search-btn:hover {
        background-color: #2a4b8d;
    }

    /* Main Container */
    .main-container {
        display: flex;
        width: 100%;
        flex: 1;
        min-height: calc(100vh - 150px);
    }

    /* Sidebar */
    .sidebar {
        width: 250px;
        background-color: white;
        border-right: 1px solid #a2a9b1;
        height: 100%;
        position: sticky;
        top: 120px; /* Below search bar */
        overflow-y: auto;
        max-height: calc(100vh - 120px);
    }

    .sidebar-header {
        background-color: #eaecf0;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #c8ccd1;
        font-weight: bold;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .file-list-container {
        overflow-y: auto;
        height: calc(100% - 45px);
    }

    .file-list {
        list-style: none;
    }

    .file-list li {
        border-bottom: 1px solid #eaecf0;
    }

    .file-list a {
        display: block;
        padding: 0.75rem 1rem;
        text-decoration: none;
        color: #0645ad;
        font-size: 0.9rem;
        transition: background-color 0.2s;
    }

    .file-list a:hover {
        background-color: #f8f9fa;
        text-decoration: underline;
    }

    .file-list a.active {
        background-color: #eaf3ff;
        border-left: 3px solid #3366cc;
        font-weight: bold;
    }

    .file-list .qa-item::before {
        content: "Q: ";
        color: #2a4b8d;
        font-weight: bold;
    }

    /* Content Area */
    .content-area {
        flex: 1;
        background-color: white;
        padding: 2rem 5%;
        overflow: auto;
        max-width: calc(100% - 250px);
    }

    .content-header {
        border-bottom: 1px solid #eaecf0;
        padding-bottom: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .content-header h1 {
        font-size: 1.75rem;
        font-weight: normal;
        color: #202122;
    }

    .content-body {
        line-height: 1.7;
        max-width: 900px;
        margin: 0 auto;
    }

    .content-body h2 {
        font-size: 1.5rem;
        margin: 1.5rem 0 1rem 0;
        border-bottom: 1px solid #eaecf0;
        padding-bottom: 0.25rem;
    }

    .content-body h3 {
        font-size: 1.25rem;
        margin: 1.25rem 0 0.75rem 0;
    }

    .content-body p {
        margin-bottom: 1rem;
    }

    .content-body ul, .content-body ol {
        margin: 1rem 0 1rem 2rem;
    }

    .content-body li {
        margin-bottom: 0.5rem;
    }

    .content-body pre {
        background-color: #f8f9fa;
        border: 1px solid #eaecf0;
        padding: 1rem;
        overflow: auto;
        margin: 1rem 0;
        border-radius: 2px;
    }

    .content-body code {
        background-color: #f8f9fa;
        padding: 0.2rem 0.4rem;
        border-radius: 2px;
        font-family: monospace;
    }

    /* Footer */
    .footer {
        background-color: #eaecf0;
        border-top: 1px solid #c8ccd1;
        padding: 1.5rem 5%;
        margin-top: auto;
    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.875rem;
        color: #54595d;
    }

    .footer-links a {
        color: #0645ad;
        text-decoration: none;
        margin-left: 1.5rem;
    }

    .footer-links a:hover {
        text-decoration: underline;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .main-container {
            flex-direction: column;
        }

        .sidebar {
            width: 100%;
            position: static;
            max-height: 300px;
            border-right: none;
            border-bottom: 1px solid #a2a9b1;
        }

        .content-area {
            max-width: 100%;
            padding: 1.5rem 5%;
        }

        .nav-container, .search-box, .footer-content {
            padding: 0 2rem;
        }
    }

    @media (max-width: 480px) {
        .nav-container, .search-box, .footer-content {
            padding: 0 1rem;
        }

        .nav-links {
            display: none;
        }

        .content-area {
            padding: 1rem;
        }
    }
    .nav-logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    }

    .logo-img {
        width: 42px;  /* Match HTML width */
        height: 42px; /* Match HTML height */
        filter: invert(1);
        transition: filter 0.3s ease;
        /* Remove any conflicting properties */
        display: block;
    }

    /* Optional hover effect */
    .nav-logo a:hover .logo-img {
        filter: invert(0.8) sepia(1) saturate(5) hue-rotate(180deg);
    }

    .logo-letter {
    transition: color 0.5s ease;
    }
    /* Fancy Form Styles */
    .fancy-form {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        background: #fdfdfd;
        padding: 2rem;
        border: 1px solid #dfe1e5;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
        max-width: 600px;
        margin: 0 auto;
    }

    .form-row {
        display: flex;
        align-items: center;
        gap: 1rem;           /* spacing between label and control */
        justify-content: flex-start;
    }

    .form-row label {
        min-width: 150px;    /* keep labels aligned in a column */
        font-weight: 500;
        color: #2a4b8d;
        text-align: left;
    }

    .file-input {
        flex: 2;
        padding: 0.5rem;
        border: 1px solid #a2a9b1;
        border-radius: 4px;
        font-size: 0.95rem;
    }

    /* Buttons */
    .btn-primary, .btn-success {
        padding: 0.6rem 1.2rem;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 0.95rem;
        transition: all 0.2s ease-in-out;
        color: #fff;
    }

    .btn-primary {
        background-color: #3366cc;
    }

    .btn-primary:hover {
        background-color: #2a4b8d;
    }

    .btn-success {
        background-color: #28a745;
    }

    .btn-success:hover {
        background-color: #1e7e34;
    }

    /* Instructions */
    .instructions {
        margin-top: 2rem;
        padding: 1.5rem;
        background: #f8f9fa;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
    }

    .instructions h2 {
        margin-bottom: 1rem;
        color: #202122;
    }

    .instructions p {
        line-height: 1.7;
    }
    /* Align form + instructions to same width */
    .form-container {
        max-width: 600px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .fancy-form,
    .instructions {
        width: 100%;
        box-sizing: border-box;
    }
