/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}



/* Header */
.main-header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-left: 2rem;
}

.nav-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-logo img {
    height: 120px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
}

.nav-menu li {
    list-style: none;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: bold;
}

.nav-link:hover {
    color: #3498db;
    background-color: rgba(255, 255, 255, 0.1);
}

.logout-btn {
    background: none;
    border: none;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}

.logout-btn:hover {
    color: #3498db;
}

/* Main Content Layout */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.content-wrapper {
    display: block;
}

.content-main {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}



/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-size: 3rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.hero-features {
    margin: 2rem 0;
    text-align: center;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    text-align: left;
}

.features-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.cta-button {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #2980b9;
}

/* How It Works Section */
.how-it-works {
    margin: 3rem 0;
}

.how-it-works h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    line-height: 40px;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Popular Guides */
.popular-guides {
    margin: 3rem 0;
}

.popular-guides h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.guide-card {
    display: block;
    padding: 1.5rem;
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s, box-shadow 0.3s;
}

.guide-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Authentication Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.auth-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.auth-form h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.auth-button {
    width: 100%;
    background-color: #3498db;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-button:hover {
    background-color: #2980b9;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

.auth-link a {
    color: #3498db;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin-bottom: 1.5rem;
}

/* Citation Generator */
.citation-generator h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.generator-subtitle {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.citation-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Input Method Selection */
.input-method-tabs {
    margin-bottom: 1.5rem;
}

.input-method-selector {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.input-method-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
    margin: 0 1.5rem;
    padding: 0.5rem 1rem;
}

/* Accessibility Improvements */
.btn:focus,
.form-group input:focus,
.form-group select:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

.btn:focus-visible,
.form-group input:focus-visible,
.form-group select:focus-visible {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }

    .btn-secondary {
        background-color: #fff;
        border-color: #000;
        color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip links */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .content-main {
        padding: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .citation-form {
        padding: 1rem;
    }

    .navbar {
        padding: 1rem;
        position: relative;
    }

    .nav-container {
        position: relative;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-header {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .nav-toggle {
        display: flex !important;
        position: relative;
        z-index: 1002;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }

    .hamburger-line {
        width: 25px;
        height: 3px;
        background-color: white;
        margin: 3px 0;
        transition: 0.3s;
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #2c3e50;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem 2rem 2rem;
        gap: 1rem;
        transition: right 0.3s ease-in-out;
        box-shadow: -2px 0 10px rgba(0,0,0,0.3);
        z-index: 1001;
        margin: 0;
        list-style: none;
        display: flex;
    }

    .nav-menu.nav-menu-active {
        right: 0 !important;
    }

    .nav-menu li {
        width: 100%;
        margin: 0;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        width: 100%;
        font-size: 1.1rem;
        text-align: left;
        border-radius: 4px;
        color: white;
        text-decoration: none;
    }

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .nav-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero-section {
        padding: 2rem 1rem;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .input-method-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .input-method-label {
        margin: 0;
        justify-content: center;
    }

    .citation-box {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .citation-form {
        padding: 0.75rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
}

.radio-option input[type="radio"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

.input-method-label:hover {
    color: #3498db;
}

.radio-option:hover {
    color: #3498db;
}

.dynamic-fields-container {
    margin-top: 1rem;
}

.auto-populate-section,
.manual-fields-section {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.manual-fields-section .form-group {
    margin-bottom: 1rem;
}

.manual-fields-section .form-group:last-child {
    margin-bottom: 0;
}

.help-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ddd;
}

.divider span {
    background-color: #f8f9fa;
    padding: 0 1rem;
    color: #7f8c8d;
    font-weight: bold;
}

.dynamic-fields {
    margin-bottom: 1.5rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
}

.btn, .btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #7f8c8d;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Citation Output */
.citation-output {
    background-color: #e8f5e8;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #d4edda;
}

.citation-section {
    margin-bottom: 1.5rem;
}

.citation-section h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.citation-box {
    background-color: white;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    position: relative;
}

.citation-box p {
    margin: 0;
    padding-right: 80px;
    word-wrap: break-word;
}

/* Responsive adjustments for toggle */
@media (max-width: 480px) {
    .tab-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background-color: #2980b9;
}

.citation-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

/* Phase 5 Advanced Features */
.notification {
    transition: all 0.3s ease;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.fade-out {
    animation: fadeOut 0.5s ease-out;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Breadcrumb Navigation */
.breadcrumbs {
    margin: 1rem 0;
    padding: 0.5rem 0;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin: 0 0.5rem;
    color: #666;
}

.breadcrumb-item a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item [aria-current="page"] {
    color: #666;
    font-weight: 500;
}

/* Homepage SEO sections */
.citation-styles {
    padding: 3rem 0;
    background-color: #f8f9fa;
    margin: 3rem 0;
}

.citation-styles h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.styles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.style-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.style-card h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

.style-card ul {
    list-style: none;
    padding: 0;
}

.style-card li {
    margin-bottom: 0.5rem;
}

.style-card a {
    color: #2c3e50;
    text-decoration: none;
}

.style-card a:hover {
    color: #3498db;
    text-decoration: underline;
}

.why-choose-us {
    padding: 3rem 0;
}

.why-choose-us h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature h3 {
    color: #3498db;
    margin-bottom: 1rem;
}

.feature p {
    color: #7f8c8d;
}

/* Internal linking improvements */
.how-it-works a {
    color: #3498db;
    text-decoration: none;
}

.how-it-works a:hover {
    text-decoration: underline;
}

.citation-form {
    animation: slideUp 0.5s ease-out;
}

.citation-output {
    animation: slideUp 0.5s ease-out;
}

/* Auto-complete improvements */
.auto-complete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auto-complete-item {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.auto-complete-item:hover {
    background-color: #f8f9fa;
}

.auto-complete-item:last-child {
    border-bottom: none;
}

.save-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.save-section h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.save-section p {
    color: #7f8c8d;
    margin-bottom: 1rem;
}

.login-prompt {
    margin-top: 1.5rem;
    text-align: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.login-prompt a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.login-prompt a:hover {
    text-decoration: underline;
}

.copy-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #27ae60;
    color: white;
    padding: 1rem;
    border-radius: 4px;
    z-index: 1000;
}

/* Contact Page Styles */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.contact-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: start;
}

.contact-form-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.contact-form .required {
    color: #e74c3c;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info-section {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    margin-bottom: 2rem;
}

.contact-method h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-method p {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.contact-method ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-method li {
    color: #7f8c8d;
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
}

.contact-method li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-container {
        padding: 1rem;
    }

    .contact-header h1 {
        font-size: 2rem;
    }

    .contact-form-section,
    .contact-info-section {
        padding: 1.5rem;
    }
}

/* Footer */
.main-footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #2c3e50;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem 2rem 2rem;
        gap: 1rem;
        transition: right 0.3s ease-in-out;
        box-shadow: -2px 0 10px rgba(0,0,0,0.3);
        z-index: 1000;
        margin: 0;
        list-style: none;
    }

    .nav-menu.nav-menu-active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
        margin: 0;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        width: 100%;
        font-size: 1.1rem;
        text-align: left;
        border-radius: 4px;
    }

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .nav-toggle.active .hamburger-line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .hamburger-line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .citation-box p {
        padding-right: 0;
        margin-bottom: 1rem;
    }

    .copy-btn {
        position: static;
        margin-top: 0.5rem;
    }
}