:root {
    --pink: #ffcad4;
    --blue: #b8d8ff;
    --purple: #cdb4db;
    --white: #ffffff;
    --text: #2b2b3a;
    --muted: #6b6b7a;
    --shadow: 0 18px 45px rgba(90, 82, 92, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f7f4ff 0%, #fffaf7 100%);
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 180, 220, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    position: relative;
}

.brand {
    font-size: 1.35rem;
    font-weight: 700;
    color: #5b3d6b;
    margin-right: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    align-items: center;
}

.nav-links li {
    margin: 0;
}

.nav-links li:last-child {
    margin-left: auto;
}

.nav-links a {
    display: inline-block;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.25s ease;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #5b3d6b;
    background: rgba(203, 180, 219, 0.12);
}

.nav-links a.active {
    font-weight: 700;
    color: #5b3d6b;
    background: rgba(203, 180, 219, 0.2);
}

.nav-login-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ffb3c7, #8dc8ff);
    color: var(--white);
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
    white-space: nowrap;
}

.nav-login-btn:hover {
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e5dbed;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-toggle:hover {
    background: #f8f1ff;
    transform: scale(1.02);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #5b3d6b;
    border-radius: 2px;
    position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: #5b3d6b;
    border-radius: 2px;
    left: 0;
}

.nav-toggle span::before {
    top: -7px;
}

.nav-toggle span::after {
    top: 7px;
}

.navbar.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    box-shadow: 0 22px 48px rgba(90, 82, 92, 0.15);
    padding: 18px 20px;
    gap: 16px;
    margin-top: 14px;
}

.nav-toggle.active span {
    background: transparent;
}

.nav-toggle.active span::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
    padding: 80px 24px 40px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #8e62a0;
    margin-bottom: 18px;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    line-height: 1.03;
    margin: 0 0 22px;
    max-width: 680px;
}

.hero p {
    max-width: 620px;
    line-height: 1.8;
    color: var(--muted);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    margin-top: 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffb3c7, #8dc8ff);
    color: var(--white);
    font-weight: 700;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button.secondary {
    background: rgba(133, 219, 157, 0.16);
    color: #5b3d6b;
    box-shadow: none;
}

.button.secondary:hover {
    opacity: 0.9;
    transform: none;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
}

.delete-button {
    width: 100%;
    background: rgba(255, 119, 136, 0.14);
    color: #9c1a2b;
    box-shadow: none;
}

.delete-button:hover {
    opacity: 0.95;
}

.hero-graphic {
    display: flex;
    justify-content: center;
}

.bike-card {
    position: relative;
    width: min(420px, 100%);
    min-height: 320px;
    border-radius: 38px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), #f7efff);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bike-icon {
    font-size: 5rem;
    z-index: 1;
}

.bike-waves {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255, 176, 203, 0.38), transparent 42%),
                radial-gradient(circle at bottom right, rgba(139, 193, 255, 0.38), transparent 35%);
}

.features {
    padding: 40px 24px 64px;
    max-width: 1120px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.feature-card {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    padding: 30px;
    min-height: 220px;
    display: grid;
    gap: 18px;
}

.feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #ffb8cd, #94c7ff);
    color: var(--white);
}

.feature-card h3 {
    margin: 0;
    font-size: 1.15rem;
}

.feature-card p {
    margin: 0;
    line-height: 1.75;
    color: var(--muted);
}

.calculator,
.tips {
    max-width: 1120px;
    margin: 0 auto;
    padding: 60px 24px;
    position: relative;
}

.calculator {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 240, 245, 0.3) 100%);
}

.tips {
    background: linear-gradient(180deg, rgba(245, 240, 255, 0.5) 0%, rgba(220, 235, 255, 0.3) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    margin: 0 0 16px;
    font-size: 2rem;
    color: #2b2b3a;
    font-weight: 700;
}

.section-header p {
    color: var(--muted);
    margin: 0;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.input-panel {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 28px;
    padding: 30px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 18px;
    max-width: 520px;
    margin: 0 auto;
}

.input-panel label {
    font-weight: 600;
    color: #4e3e5c;
}

.input-panel input,
.input-panel textarea {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #dcd6e4;
    border-radius: 18px;
    font-size: 1rem;
    font-family: inherit;
}

.input-panel textarea {
    resize: vertical;
    min-height: 140px;
}

.input-panel button {
    border: none;
    cursor: pointer;
    padding: 16px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff91a9, #89b3ff);
    color: var(--white);
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.input-panel button:hover {
    opacity: 0.95;
}

.form-error {
    color: #c14f6f;
    margin: 0;
}

.form-success {
    color: #2e7f41;
    margin: 0;
}

.toast-notice {
    position: relative;
    overflow: hidden;
    padding: 18px 22px;
    border-radius: 24px;
    box-shadow: 0 12px 26px rgba(99, 88, 132, 0.08);
    animation: toastIn 0.3s ease;
}

.toast-notice.success-notice {
    background: linear-gradient(135deg, rgba(216, 249, 238, 0.92), rgba(223, 241, 255, 0.92));
    color: #1f5d38;
}

.toast-notice.error-notice {
    background: linear-gradient(135deg, rgba(255, 233, 235, 0.94), rgba(255, 243, 240, 0.94));
    color: #8b1f2e;
}

.toast-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.toast-undo {
    padding: 10px 16px;
    min-width: 120px;
    text-align: center;
}

.toast-notice.hide {
    opacity: 0;
    transition: opacity 0.4s ease;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 24px;
    padding: 22px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.filter-panel .filter-group {
    display: grid;
    gap: 8px;
}

.filter-panel label {
    font-weight: 600;
    color: #5b3d6b;
}

.filter-panel select,
.filter-panel input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dcd6e4;
    border-radius: 16px;
    font-size: 0.95rem;
}

.filter-panel button {
    min-height: 56px;
    margin-top: auto;
    align-self: end;
    background: linear-gradient(135deg, #ff91a9, #89b3ff);
    color: var(--white);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.filter-panel button:hover {
    opacity: 0.95;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
}

@media (max-width: 860px) {
    .filter-actions {
        flex-direction: row;
    }
}

.history-table-wrap {
    overflow-x: auto;
    margin-top: 24px;
}

.history-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    border-radius: 24px;
    overflow: hidden;
}

.history-table th,
.history-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid #ece6f5;
}

.history-table th {
    background: rgba(220, 235, 255, 0.9);
    color: #5b3d6b;
    font-weight: 700;
}

.history-table tbody tr:hover {
    background: rgba(243, 236, 255, 0.8);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.status-card {
    border-radius: 28px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    min-height: 190px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.35s ease;
    transform: translateY(16px);
    opacity: 0;
}

.status-card.visible,
.status-card:hover {
    transform: translateY(0);
    opacity: 1;
}

.status-card:hover {
    box-shadow: 0 28px 55px rgba(90, 82, 92, 0.18);
}

.status-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.status-title h3 {
    margin: 0;
    font-size: 1.1rem;
}

.status-badge {
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f2f0ff;
    color: #5b3d6b;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.status-card.good .status-badge {
    background: rgba(133, 219, 157, 0.2);
    color: #2e7f41;
}

.status-card.medium .status-badge {
    background: rgba(255, 211, 120, 0.25);
    color: #a06600;
}

.status-card.bad .status-badge {
    background: rgba(255, 119, 136, 0.2);
    color: #9c1a2b;
}

.status-text {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.75;
}

.status-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    color: #7c6f92;
    font-size: 0.92rem;
}

.result-summary {
    margin-top: 24px;
    padding: 18px 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 240, 245, 0.9), rgba(220, 235, 255, 0.9));
    color: #4d3b60;
    box-shadow: 0 12px 26px rgba(99, 88, 132, 0.08);
}

.meter {
    height: 12px;
    border-radius: 999px;
    background: #e7e2f0;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    transition: width 0.8s ease;
}

.status-card.good .meter-fill {
    width: 28%;
    background: #62c68d;
}

.status-card.medium .meter-fill {
    width: 60%;
    background: #f7c55c;
}

.status-card.bad .meter-fill {
    width: 92%;
    background: #ff7d8b;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--muted);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.tips-grid article {
    border-radius: 16px;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(90, 82, 92, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.tips-grid article:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(90, 82, 92, 0.12);
}

.tips-grid h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    color: #2b2b3a;
}

.tips-grid p {
    margin: 0;
    color: #6b6b7a;
    line-height: 1.6;
    font-size: 0.95rem;
}

.site-footer {
    text-align: center;
    padding: 24px;
    color: var(--muted);
}

@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-graphic {
        order: -1;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        display: none;
        width: 100%;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 14px 16px;
        border-radius: 16px;
    }

    .cards-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .calculator,
    .tips {
        padding: 40px 24px;
    }
}

@media (max-width: 560px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        gap: 12px;
    }

    .status-card,
    .input-panel,
    .tips-grid article {
        padding: 22px;
    }
}

/* Login Page Styling */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    z-index: 998;
}

.auth-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}

.auth-wrapper {
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Analysis Results Section */
.analysis-results {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
    animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.result-summary {
    margin-bottom: 32px;
}

.result-header {
    margin: 0;
}

.result-header h2 {
    margin: 0 0 12px;
    font-size: 1.8rem;
    color: #2b2b3a;
}

.result-header p {
    margin: 0;
    color: #6b6b7a;
    font-size: 1.05rem;
}

.login-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    padding: 40px 35px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    margin: 0 0 10px;
    font-size: 1.6rem;
    color: #2b2b3a;
    font-weight: 700;
}

.login-header p {
    margin: 0;
    font-size: 0.9rem;
    color: #8b8b9a;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2b2b3a;
}

.form-field input {
    padding: 11px 14px;
    border: 1.5px solid #e0e0e8;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #2b2b3a;
    background: #fafbfc;
    transition: all 0.2s ease;
}

.form-field input:focus {
    outline: none;
    border-color: #5b3d6b;
    background: white;
    box-shadow: 0 0 0 3px rgba(91, 61, 107, 0.08);
}

.form-field input::placeholder {
    color: #c0c0cc;
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin: 0;
}

.alert-error {
    background: #fef0f0;
    border: 1.5px solid #f0d0d0;
    color: #a74a52;
}

.alert-success {
    background: #eff6ff;
    border: 1.5px solid #c7ddff;
    color: #1e3a8a;
}

.btn-login {
    padding: 11px 20px;
    margin-top: 8px;
    background: linear-gradient(135deg, #5b3d6b 0%, #7c5a8c 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(91, 61, 107, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 61, 107, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-logout {
    padding: 8px 18px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white !important;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2);
    display: inline-block;
    white-space: nowrap;
}

.btn-logout:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    background: linear-gradient(135deg, #ff5252 0%, #ff3333 100%);
}

.btn-logout:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f5;
}

.login-footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #8b8b9a;
}

.login-footer a {
    color: #5b3d6b;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-footer a:hover {
    color: #3d2a4a;
}

@media (max-width: 480px) {
    .auth-page {
        padding: 16px;
    }

    .login-card {
        padding: 32px 24px;
    }

    .login-header h1 {
        font-size: 1.4rem;
    }

    .login-form {
        gap: 16px;
    }
}

/* ============================================
   History Section Styles
   ============================================ */

.history-section {
    max-width: 1120px;
    margin: 60px auto;
    padding: 0 24px;
}

.history-table-wrapper {
    margin-top: 30px;
    border-radius: 16px;
    background: white;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.history-table thead {
    background: #f7f4ff;
    border-bottom: 2px solid #e8e4f3;
}

.history-table th {
    padding: 16px;
    text-align: left;
    font-weight: 700;
    color: #5b3d6b;
}

.history-table td {
    padding: 16px;
    border-bottom: 1px solid #f0f0f5;
    color: var(--text);
}

.history-table tbody tr:hover {
    background: #f9f7ff;
}

.date-cell {
    min-width: 150px;
}

.date-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.date-main {
    font-weight: 700;
    color: #5b3d6b;
}

.date-time {
    font-size: 0.85rem;
    color: var(--muted);
}

.km-cell {
    font-weight: 700;
    color: #75507b;
}

.status-cell {
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.status-baik {
    background: #d4f4dd;
    color: #1b7c3a;
}

.status-sedang {
    background: #fff4d6;
    color: #926603;
}

.status-buruk {
    background: #ffe5e5;
    color: #c41c1c;
}

.action-cell {
    text-align: center;
}

.btn-delete {
    padding: 8px 14px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-delete:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.history-actions {
    margin-top: 30px;
    text-align: center;
}

.empty-state {
    text-align: center;
    padding: 60px 24px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #5b3d6b;
}

.empty-state p {
    color: var(--muted);
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state .button {
    margin-bottom: 0;
}

/* ============================================
   Mobile Responsive
   ============================================ */

@media (max-width: 768px) {
    .navbar {
        padding: 12px 24px;
    }

    .brand {
        margin-right: auto;
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .navbar.nav-open .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 24px;
        left: 24px;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        padding: 14px 0;
        gap: 0;
        margin-top: 12px;
        width: auto;
    }

    .navbar.nav-open .nav-links li {
        width: 100%;
        margin: 0;
    }

    .navbar.nav-open .nav-links li:last-child {
        margin-left: 0;
        margin-top: 8px;
        padding: 8px 16px;
        border-top: 1px solid rgba(200, 180, 220, 0.2);
    }

    .navbar.nav-open .nav-links a {
        display: block;
        padding: 12px 20px;
        width: 100%;
        text-align: left;
    }

    .history-table-wrapper {
        overflow-x: auto;
    }

    .history-table {
        min-width: 600px;
    }

    .history-table th,
    .history-table td {
        padding: 12px;
        font-size: 0.9rem;
    }

    .action-cell {
        min-width: 80px;
    }

    .btn-delete {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}
