/* ===== CSS Variables & Color Palette ===== */
:root {
    --primary: #A8C4E8;
    --primary-dark: #8BA8D8;
    --secondary: #C8A8E8;
    --secondary-dark: #B090D8;
    --accent: #7A9ED8;
    --background: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-primary: #2D3748;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --border: #E2E8F0;
    --success: #48BB78;
    --warning: #ECC94B;
    --error: #F56565;
    --shadow: rgba(168, 196, 232, 0.25);
    --shadow-lg: rgba(168, 196, 232, 0.35);
}

/* ===== Utility Classes ===== */
.hidden {
    display: none !important;
}

/* ===== Viewed Notes Styling ===== */
.note-card.note-viewed {
    border: 2px solid var(--success);
    position: relative;
}

.note-card.note-viewed .note-header {
    position: relative;
}

.viewed-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(72, 187, 120, 0.9);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* ===== Reset & Base Styles ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--background) 0%, #EDF2F7 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

/* ===== Layout Components ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Header & Navigation ===== */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 20px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.nav-user-avatar {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ===== Cards ===== */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--shadow-lg);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.card-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(168, 196, 232, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 196, 232, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(200, 168, 232, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 168, 232, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary-dark);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--error) 0%, #E53E3E 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #38A169 100%);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

.btn-block {
    width: 100%;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(168, 196, 232, 0.2);
}

.form-input::placeholder {
    color: var(--text-muted);
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234A5568'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

/* ===== Progress Bars ===== */
.progress-container {
    margin-bottom: 1rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.progress-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.progress-bar {
    height: 12px;
    background: var(--border);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.progress-companion {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.progress-production {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.progress-equine {
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.progress-vph {
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
}

/* ===== Auth Pages ===== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.25rem;
    box-shadow: 0 10px 30px var(--shadow);
}

.auth-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--background);
    padding: 0.375rem;
    border-radius: 10px;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: var(--card-bg);
    color: var(--primary-dark);
    box-shadow: 0 2px 8px var(--shadow);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.auth-footer-text {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-footer-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
}

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

/* ===== Status Messages ===== */
.status-message {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.status-pending {
    background: linear-gradient(135deg, rgba(236, 201, 75, 0.15) 0%, rgba(236, 201, 75, 0.05) 100%);
    border: 1px solid var(--warning);
    color: #B7791F;
}

.status-success {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.15) 0%, rgba(72, 187, 120, 0.05) 100%);
    border: 1px solid var(--success);
    color: #276749;
}

.status-error {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.15) 0%, rgba(245, 101, 101, 0.05) 100%);
    border: 1px solid var(--error);
    color: #C53030;
}

.status-icon {
    font-size: 1.25rem;
}

/* ===== Dashboard Layout ===== */
.dashboard-content {
    flex: 1;
    padding: 2rem 0;
}

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

.dashboard-welcome {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    margin-bottom: 2rem;
}

.dashboard-welcome h2 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.dashboard-welcome p {
    opacity: 0.9;
    font-size: 1rem;
}

/* ===== Notes Section ===== */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.note-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.note-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--shadow-lg);
}

.note-header {
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.note-domain {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

.note-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.note-body {
    padding: 1.25rem;
}

.note-preview {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-actions {
    display: flex;
    gap: 0.75rem;
}

/* ===== Notes Viewer Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--card-bg);
    border-radius: 20px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ===== Note Content (View Only) ===== */
.note-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    user-select: none;
}

.note-content h1,
.note-content h2,
.note-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.note-content p {
    margin-bottom: 1rem;
}

.note-content ul,
.note-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* ===== Admin Panel ===== */
.admin-section {
    margin-bottom: 2rem;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== User Table ===== */
.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th,
.user-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.user-table th {
    background: var(--background);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.user-table tr:hover td {
    background: var(--background);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.pending {
    background: rgba(236, 201, 75, 0.15);
    color: #B7791F;
}

.status-badge.approved {
    background: rgba(72, 187, 120, 0.15);
    color: #276749;
}

.status-badge.rejected {
    background: rgba(245, 101, 101, 0.15);
    color: #C53030;
}

.status-badge.expired {
    background: rgba(245, 101, 101, 0.2);
    color: #C53030;
    border: 1px solid var(--error);
}

/* Expiry warning styles */
.expiring-soon {
    color: var(--warning) !important;
    font-weight: 600;
}

.expired {
    color: var(--error) !important;
    font-weight: 600;
}

.row-expired {
    background: rgba(245, 101, 101, 0.05);
}

.row-expired td {
    opacity: 0.8;
}

/* Password management styles */
.password-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-display {
    background: var(--background);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.reset-badge {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--warning);
    background: rgba(236, 201, 75, 0.15);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    margin-top: 0.25rem;
}

.row-reset-requested {
    background: rgba(236, 201, 75, 0.05);
}


/* ===== File Upload ===== */
.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--background);
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--primary);
    background: rgba(168, 196, 232, 0.1);
}

.file-upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.file-upload-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== Print Styles ===== */
@media print {

    .header,
    .note-actions,
    .modal-footer,
    .btn {
        display: none !important;
    }

    .modal-overlay {
        position: static;
        background: none;
        padding: 0;
    }

    .modal {
        box-shadow: none;
        max-height: none;
    }

    .note-content {
        user-select: text;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .notes-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 1.75rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .modal {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.5s ease forwards;
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.hidden {
    display: none !important;
}

/* ===== Landing Page Styles ===== */
.landing-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--background) 0%, #E2E8F0 100%);
}

.landing-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.intro-section {
    padding-right: 2rem;
}

.intro-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.pricing-card.popular {
    border: 2px solid var(--secondary);
    background: linear-gradient(to bottom, #F7FAFC, #FFFFFF);
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-duration {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pricing-feature {
    font-size: 0.85rem;
    color: var(--success);
    font-weight: 500;
}

/* Auth Section */
.auth-section {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .landing-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 2rem;
    }

    .intro-section {
        padding-right: 0;
        text-align: center;
        order: 1;
    }

    .intro-content h1 {
        font-size: 2.5rem;
    }

    .auth-section {
        order: 2;
    }

    .pricing-grid {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 320px;
    }

    .pricing-card.popular {
        transform: none;
    }

    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }

    .landing-wrapper {
        padding: 1rem;
    }

    .intro-content h1 {
        font-size: 2rem;
    }
}

/* Disclaimer Styles */
.disclaimer-box {
    margin-top: 2.5rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.6);
    border-left: 3px solid var(--warning);
    border-radius: 0 8px 8px 0;
}

.disclaimer-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-style: italic;
}

.disclaimer-text strong {
    color: var(--text-secondary);
    font-style: normal;
}
/* ===== Dashboard Sub-Navigation Tabs ===== */
.dashboard-tabs-container {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.dashboard-tabs {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.dashboard-tab {
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-tab:hover {
    color: var(--primary-dark);
}

.dashboard-tab.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

/* ===== Question Bank MCQ Practice UI ===== */
.practice-setup {
    max-width: 600px;
    margin: 0 auto;
}

.practice-setup-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.mcq-card {
    max-width: 800px;
    margin: 0 auto;
}

.mcq-progress-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.mcq-progress-bar-bg {
    flex: 1;
    height: 8px;
    background: var(--background);
    border-radius: 4px;
    margin: 0 1.5rem;
    overflow: hidden;
}

.mcq-progress-bar-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.mcq-image-container {
    margin-bottom: 1.5rem;
    text-align: center;
    background: var(--background);
    border-radius: 8px;
    padding: 0.5rem;
    border: 1px solid var(--border);
}

.mcq-image {
    max-height: 350px;
    max-width: 100%;
    border-radius: 6px;
    object-fit: contain;
}

.mcq-question-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.mcq-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.mcq-option-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    text-align: left;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 1rem;
}

.mcq-option-btn:hover:not(:disabled) {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.mcq-option-btn:disabled {
    cursor: not-allowed;
}

.mcq-option-prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--background);
    color: var(--text-secondary);
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid var(--border);
}

.mcq-option-btn.selected {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.08);
}

.mcq-option-btn.selected .mcq-option-prefix {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.mcq-option-btn.correct {
    border-color: var(--success);
    background: rgba(72, 187, 120, 0.08);
}

.mcq-option-btn.correct .mcq-option-prefix {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.mcq-option-btn.incorrect {
    border-color: var(--error);
    background: rgba(229, 62, 62, 0.08);
}

.mcq-option-btn.incorrect .mcq-option-prefix {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

.mcq-feedback {
    background: var(--background);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--primary);
    animation: slideDown 0.3s ease;
}

.mcq-feedback.correct {
    border-left-color: var(--success);
}

.mcq-feedback.incorrect {
    border-left-color: var(--error);
}

.feedback-status {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.mcq-feedback.correct .feedback-status {
    color: var(--success);
}

.mcq-feedback.incorrect .feedback-status {
    color: var(--error);
}

.feedback-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.practice-summary-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.score-ring {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--shadow);
}

.score-display {
    text-align: center;
}

.score-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.score-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    font-weight: 600;
}

/* Supabase Configuration Box */
.supabase-config-box {
    background: var(--background);
    border: 1px dashed var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.supabase-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.supabase-status.connected {
    background: rgba(72, 187, 120, 0.15);
    color: var(--success);
}

.supabase-status.disconnected {
    background: rgba(160, 174, 192, 0.15);
    color: var(--text-secondary);
}

.image-preview-box {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    background: var(--background);
    margin-top: 0.5rem;
    position: relative;
}

.image-preview-img {
    max-height: 200px;
    max-width: 100%;
    border-radius: 4px;
}

.btn-remove-preview {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
