/* ===== SWIPE-STYLE ADVANCED UI ===== */

:root {
    /* Simple Color Palette */
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #6b7280;

    /* Background Colors */
    --bg-main: #f9fafb;
    --bg-white: #ffffff;
    --bg-card: #ffffff;

    /* Text Colors */
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;

    /* Border Colors */
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Variables */
body.dark-mode {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #9ca3af;

    /* Background Colors */
    --bg-main: #0f172a;
    --bg-white: #1e293b;
    --bg-card: #1e293b;

    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    /* Border Colors */
    --border-light: #334155;
    --border-medium: #475569;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== REMOVED DECORATIVE ELEMENTS FOR SIMPLICITY ===== */
/* Sparkles and animated gradients removed */

/* ===== BOUNCING CURSOR ARROW ===== */
.cursor-bounce {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 100;
    opacity: 0.7;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-15px);
    }

    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

/* ===== TOP NAVIGATION ===== */
.top-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

/* ===== CARDS WITH 3D HOVER EFFECT ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.05), transparent);
    transition: left 0.6s ease;
}

.card:hover::before {
    left: 100%;
}

/* Keep 3D hover effect */
.card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-hover);
}

/* ===== GRADIENT BORDER CARDS ===== */
.card-gradient {
    position: relative;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2px;
}

.card-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-color), #ec4899);
    background-size: 400% 400%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rainbowBorder 6s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-gradient:hover::before {
    opacity: 1;
}

@keyframes rainbowBorder {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 400% 50%;
    }
}

/* ===== INTERACTIVE TAG PILLS ===== */
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag-pill:hover {
    background: rgba(79, 70, 229, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.15);
}

.tag-pill.active {
    background: var(--primary-color);
    border-color: transparent;
    color: white;
}

.tag-pill.cyan {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
}

.tag-pill.pink {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.2);
    color: #ec4899;
}

/* ===== ICON ANIMATIONS ===== */
.icon-animate {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-animate:hover {
    transform: rotate(15deg) scale(1.2);
    filter: drop-shadow(0 0 8px currentColor);
}

.icon-spin:hover {
    animation: iconSpin 0.6s ease;
}

@keyframes iconSpin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.icon-pulse {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ===== SIMPLE BUTTONS ===== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-medium);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background: var(--bg-main);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== SIMPLE INPUTS ===== */
input,
select,
textarea {
    background: var(--bg-white);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

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

/* ===== SCROLL ANIMATIONS ===== */
.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate.from-left {
    transform: translateX(-60px);
}

.scroll-animate.from-right {
    transform: translateX(60px);
}

.scroll-animate.from-left.visible,
.scroll-animate.from-right.visible {
    transform: translateX(0);
}

/* ===== TABLE ENHANCEMENTS ===== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

thead {
    background: var(--bg-main);
}

thead th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-light);
}

tbody tr:hover {
    background: var(--bg-main);
    transform: scale(1.01);
}

tbody td {
    padding: 18px 20px;
    color: var(--text-primary);
}

/* ===== STATUS BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ===== SIDEBAR STYLES ===== */
aside {
    background: var(--bg-white);
    border-right: 1px solid var(--border-light);
}

aside nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

aside nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--primary-color);
    border-radius: 0 4px 4px 0;
    transition: height 0.3s ease;
}

aside nav a:hover,
aside nav a.active {
    background: rgba(79, 70, 229, 0.1);
    color: var(--text-primary);
}

aside nav a:hover::before,
aside nav a.active::before {
    height: 60%;
}

aside nav a.active {
    color: var(--primary-color);
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}

/* ===== LOADING SHIMMER ===== */
.shimmer {
    background: linear-gradient(90deg,
            var(--bg-main) 0%,
            var(--border-light) 50%,
            var(--bg-main) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ===== ENCRYPTED BACKGROUND EFFECT ===== */
.encrypted-bg {
    position: relative;
    overflow: hidden;
}

.encrypted-bg::after {
    content: '01001010 10101001 01010011 11001010';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-family: monospace;
    font-size: 10px;
    color: rgba(79, 70, 229, 0.05);
    word-wrap: break-word;
    overflow: hidden;
    animation: matrixRain 20s linear infinite;
    pointer-events: none;
}

@keyframes matrixRain {
    0% {
        transform: translateY(-100%);
    }

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

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .card:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .btn-primary:hover {
        transform: translateY(-2px);
    }

    aside {
        position: fixed;
        left: -100%;
        transition: left 0.3s ease;
        z-index: 999;
    }

    aside.open {
        left: 0;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-purple {
    box-shadow: var(--shadow-hover);
}

.glow-pink {
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.3);
}

.glow-cyan {
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.3);
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===== SIMPLE GLASS EFFECT ===== */
.glass {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
}

/* ===== ANIMATION KEYFRAMES ===== */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

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

.animate-slide-in {
    animation: slide-in 0.6s ease-out;
}

/* ===== DARK MODE SPECIFIC STYLES ===== */

/* Input fields in dark mode */
body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background: #0f172a;
    border-color: var(--border-light);
    color: var(--text-primary);
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    border-color: var(--primary-color);
    background: #1e293b;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: var(--text-muted);
}

/* Tables in dark mode */
body.dark-mode table {
    color: var(--text-primary);
}

body.dark-mode th {
    background: #0f172a;
    color: var(--text-secondary);
}

body.dark-mode tr:hover {
    background: #0f172a;
}

/* Buttons in dark mode */
body.dark-mode .btn-primary {
    background: var(--primary-color);
    color: white;
}

body.dark-mode .btn-primary:hover {
    background: var(--primary-hover);
}

/* Cards with transitions */
.card,
.top-nav,
input,
textarea,
select,
button {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Theme toggle button enhancement */
#themeToggleBtn {
    transition: all 0.3s ease;
}

body.dark-mode #themeToggleBtn {
    color: #fbbf24;
}

body.dark-mode #themeToggleBtn:hover {
    background: rgba(251, 191, 36, 0.1);
}

/* Dark mode text color overrides for Tailwind classes */
body.dark-mode .text-gray-900,
body.dark-mode .text-gray-800 {
    color: var(--text-primary) !important;
}

body.dark-mode .text-gray-700,
body.dark-mode .text-gray-600 {
    color: var(--text-secondary) !important;
}

body.dark-mode .text-gray-500,
body.dark-mode .text-gray-400 {
    color: var(--text-muted) !important;
}

/* Specific element overrides */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: var(--text-primary);
}

body.dark-mode p {
    color: var(--text-secondary);
}

body.dark-mode label {
    color: var(--text-secondary);
}

body.dark-mode a {
    color: var(--text-secondary);
}

body.dark-mode a:hover {
    color: var(--text-primary);
}

/* Navigation links in dark mode */
body.dark-mode .top-nav a {
    color: var(--text-secondary);
}

body.dark-mode .top-nav a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Active navigation link */
body.dark-mode .top-nav a.text-indigo-600,
body.dark-mode .top-nav a.bg-indigo-50 {
    color: var(--primary-color) !important;
    background: rgba(99, 102, 241, 0.1) !important;
}

/* Stats and dashboard text */
body.dark-mode .stat-value,
body.dark-mode .font-bold {
    color: var(--text-primary);
}

/* Invoice preview specific */
body.dark-mode .invoice-container {
    background: var(--bg-card);
    color: var(--text-primary);
}

body.dark-mode .invoice-container h1,
body.dark-mode .invoice-container h2,
body.dark-mode .invoice-container h3 {
    color: var(--text-primary);
}

body.dark-mode .invoice-container p {
    color: var(--text-secondary);
}

/* Button text visibility */
body.dark-mode button {
    color: var(--text-primary);
}

body.dark-mode .btn-primary {
    color: white !important;
}

/* Border colors in dark mode */
body.dark-mode .border-gray-100,
body.dark-mode .border-gray-200,
body.dark-mode .border-gray-300 {
    border-color: var(--border-light) !important;
}

/* Background colors for hover states */
body.dark-mode .hover\:bg-gray-50:hover,
body.dark-mode .hover\:bg-gray-100:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* ===== CREATE.HTML & PREVIEW.HTML DARK MODE ENHANCEMENTS ===== */

/* Invoice sections */
body.dark-mode .invoice-section {
    background: var(--bg-card);
}

body.dark-mode .section-title {
    color: var(--text-primary);
}

/* Line items table */
body.dark-mode .line-items-table,
body.dark-mode table {
    background: var(--bg-card);
}

body.dark-mode .line-items-table th,
body.dark-mode table thead th {
    background: #0f172a;
    color: var(--text-secondary);
    border-color: var(--border-light);
}

body.dark-mode .line-items-table td,
body.dark-mode table tbody td {
    color: var(--text-secondary);
    border-color: var(--border-light);
}

body.dark-mode .line-items-table tr:hover,
body.dark-mode table tbody tr:hover {
    background: #0f172a;
}

/* Invoice totals section */
body.dark-mode .totals-section {
    border-color: var(--border-medium);
}

body.dark-mode #displaySubtotal,
body.dark-mode #displayTaxAmt,
body.dark-mode #displayTotal,
body.dark-mode #subtotal,
body.dark-mode #taxAmount,
body.dark-mode #total {
    color: var(--text-primary) !important;
}

/* Info sections */
body.dark-mode .info-section {
    background: #0f172a;
    border-color: var(--border-light);
}

/* Invoice header */
body.dark-mode .invoice-header {
    border-color: var(--border-medium);
}

body.dark-mode #companyName,
body.dark-mode #businessNameDisplay {
    color: var(--text-primary) !important;
}

body.dark-mode #companyDetails,
body.dark-mode #businessAddressDisplay,
body.dark-mode #businessEmailDisplay,
body.dark-mode #businessPhoneDisplay {
    color: var(--text-secondary) !important;
}

/* Invoice details */
body.dark-mode #invoiceNumber {
    color: var(--primary-color) !important;
}

body.dark-mode #invoiceDate,
body.dark-mode #dueDate,
body.dark-mode #paymentTerms {
    color: var(--text-primary) !important;
}

/* Client information */
body.dark-mode #clientName {
    color: var(--text-primary) !important;
}

body.dark-mode #clientEmail,
body.dark-mode #clientPhone,
body.dark-mode #clientAddress {
    color: var(--text-secondary) !important;
}

/* Notes and terms sections */
body.dark-mode #notesSection,
body.dark-mode #termsSection {
    background: var(--bg-card);
}

body.dark-mode #invoiceNotes,
body.dark-mode #invoiceTerms {
    color: var(--text-secondary) !important;
}

/* Invoice footer */
body.dark-mode .invoice-footer {
    border-color: var(--border-medium);
    color: var(--text-muted);
}

/* Form elements in invoice pages */
body.dark-mode .invoice-form input,
body.dark-mode .invoice-form textarea,
body.dark-mode .invoice-form select {
    background: #0f172a;
    border-color: var(--border-light);
    color: var(--text-primary);
}

body.dark-mode .invoice-form input:focus,
body.dark-mode .invoice-form textarea:focus,
body.dark-mode .invoice-form select:focus {
    background: #1e293b;
    border-color: var(--primary-color);
}

/* Row totals in line items */
body.dark-mode .row-total {
    color: var(--text-primary) !important;
}

/* Tax label and amounts */
body.dark-mode #taxLabel {
    color: var(--text-secondary) !important;
}

/* Indigo text colors (totals, highlights) */
body.dark-mode .text-indigo-600 {
    color: var(--primary-color) !important;
}

/* Glass effect cards */
body.dark-mode .glass {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(16px);
    border-color: var(--border-light);
}

/* Success/error messages */
body.dark-mode .bg-green-50 {
    background: rgba(34, 197, 94, 0.1) !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
}

body.dark-mode .text-green-700 {
    color: #86efac !important;
}

body.dark-mode .bg-red-50 {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

body.dark-mode .text-red-700 {
    color: #fca5a5 !important;
}

/* Placeholder text visibility */
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.7;
}

/* Additional preview.html specific fixes */
body.dark-mode .invoice-container {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

body.dark-mode .invoice-container .text-gray-900 {
    color: var(--text-primary) !important;
}

body.dark-mode .invoice-container .text-gray-600,
body.dark-mode .invoice-container .text-gray-500 {
    color: var(--text-secondary) !important;
}

body.dark-mode .invoice-container .text-gray-400 {
    color: var(--text-muted) !important;
}

body.dark-mode .invoice-container .font-bold,
body.dark-mode .invoice-container .font-semibold {
    color: var(--text-primary) !important;
}

body.dark-mode .invoice-container .border-gray-100,
body.dark-mode .invoice-container .border-gray-200,
body.dark-mode .invoice-container .border-gray-300 {
    border-color: var(--border-light) !important;
}

body.dark-mode .invoice-container .border-gray-50 {
    border-color: var(--border-light) !important;
}

/* Specific invoice preview elements */
body.dark-mode .invoice-container table thead {
    background: #0f172a !important;
}

body.dark-mode .invoice-container table th {
    color: var(--text-secondary) !important;
    background: #0f172a !important;
}

body.dark-mode .invoice-container table td {
    color: var(--text-secondary) !important;
}

body.dark-mode .invoice-container .text-xl,
body.dark-mode .invoice-container .text-lg {
    color: var(--text-primary) !important;
}

body.dark-mode .invoice-container .text-sm {
    color: var(--text-secondary) !important;
}

body.dark-mode .invoice-container .text-xs {
    color: var(--text-muted) !important;
}

/* Invoice header border */
body.dark-mode .invoice-header {
    border-bottom-color: var(--primary-color) !important;
}

/* Info section background */
body.dark-mode .info-section {
    background: #0f172a !important;
}

/* Preview.html action bar and buttons */
body.dark-mode .no-print {
    background: transparent;
}

body.dark-mode .no-print a,
body.dark-mode .no-print button {
    color: var(--text-secondary);
}

body.dark-mode .no-print a:hover {
    color: var(--text-primary);
}

body.dark-mode .no-print .btn-primary {
    background: var(--primary-color);
    color: white !important;
}

body.dark-mode .no-print .btn-primary:hover {
    background: var(--primary-hover);
}

/* ===== LOGIN & SIGNUP PAGES DARK MODE ===== */

/* Auth container */
body.dark-mode .auth-container {
    background: var(--bg-main);
}

body.dark-mode .auth-card {
    background: var(--bg-card);
    border-color: var(--border-light);
}

body.dark-mode .auth-card h2,
body.dark-mode .auth-card h3 {
    color: var(--text-primary);
}

body.dark-mode .auth-card p {
    color: var(--text-secondary);
}

body.dark-mode .auth-card a {
    color: var(--primary-color);
}

body.dark-mode .auth-card a:hover {
    color: var(--primary-hover);
}

body.dark-mode .auth-card input {
    background: #0f172a;
    border-color: var(--border-light);
    color: var(--text-primary);
}

body.dark-mode .auth-card input:focus {
    background: #1e293b;
    border-color: var(--primary-color);
}

body.dark-mode .auth-card input::placeholder {
    color: var(--text-muted);
}

body.dark-mode .auth-card label {
    color: var(--text-secondary);
}

body.dark-mode .auth-card .text-gray-600,
body.dark-mode .auth-card .text-gray-500 {
    color: var(--text-secondary) !important;
}

body.dark-mode .auth-card .text-gray-400 {
    color: var(--text-muted) !important;
}

/* Divider in auth pages */
body.dark-mode .auth-card hr {
    border-color: var(--border-light);
}

/* Password strength indicator */
body.dark-mode .password-strength {
    background: #0f172a;
}

/* Print mode - always light */
@media print {
    body.dark-mode {
        --bg-main: #ffffff;
        --bg-white: #ffffff;
        --bg-card: #ffffff;
        --text-primary: #111827;
        --text-secondary: #6b7280;
        --border-light: #e5e7eb;
    }
}