html, body {
    min-height: 100%;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

* {
    min-width: 0;
}

.overflow-x-auto {
    -webkit-overflow-scrolling: touch;
}

.admin-dashboard {
    background-color: #f8fafc;
    color: #1e293b;
    --ui-primary: #0f172a;
    --ui-primary-hover: #1e293b;
    --ui-success: #059669;
    --ui-success-hover: #047857;
    --ui-danger: #e11d48;
    --ui-danger-hover: #be123c;
    --ui-warning: #d97706;
    --ui-warning-hover: #b45309;
    --ui-border: #e2e8f0;
    --ui-muted: #64748b;
}

.admin-dashboard.ui-theme-blue {
    --ui-primary: #1d4ed8;
    --ui-primary-hover: #1e40af;
}

.admin-dashboard.ui-theme-emerald {
    --ui-primary: #059669;
    --ui-primary-hover: #047857;
}

.admin-dashboard.ui-theme-purple {
    --ui-primary: #7c3aed;
    --ui-primary-hover: #6d28d9;
}

.admin-dashboard.ui-theme-pink {
    --ui-primary: #ec4899;
    --ui-primary-hover: #db2777;
}

.admin-dashboard.ui-dark {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.admin-dashboard.ui-dark .dashboard-content {
    color: #ffffff !important;
}

.admin-dashboard.ui-dark main,
.admin-dashboard.ui-dark .dashboard-content {
    background-color: transparent !important;
}

.admin-dashboard.ui-dark .dashboard-content .rounded-2xl.border.border-slate-200.bg-white,
.admin-dashboard.ui-dark .rounded-2xl.border.border-slate-200.bg-white {
    background-color: #0a0a0a !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55) !important;
}

.admin-dashboard.ui-dark header.bg-white\/90,
.admin-dashboard.ui-dark header.bg-white\/95,
.admin-dashboard.ui-dark header.bg-white {
    background-color: rgba(0, 0, 0, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.admin-dashboard.ui-dark aside.bg-white\/95,
.admin-dashboard.ui-dark aside.bg-white {
    background-color: rgba(0, 0, 0, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.admin-dashboard.ui-dark #mobileSidebar {
    background-color: rgba(0, 0, 0, 0.96) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.admin-dashboard.ui-dark #notificationDropdownMenu,
.admin-dashboard.ui-dark #profileDropdownMenu,
.admin-dashboard.ui-dark .shadow-lg.bg-white,
.admin-dashboard.ui-dark .shadow-xl.bg-white {
    background-color: #0a0a0a !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.admin-dashboard.ui-dark .text-slate-900 {
    color: #ffffff !important;
}
.admin-dashboard.ui-dark .text-slate-700,
.admin-dashboard.ui-dark .text-slate-600,
.admin-dashboard.ui-dark .text-slate-500,
.admin-dashboard.ui-dark .text-slate-400 {
    color: rgba(255, 255, 255, 0.72) !important;
}
.admin-dashboard.ui-dark .bg-slate-50 {
    background-color: rgba(255, 255, 255, 0.05) !important;
}
.admin-dashboard.ui-dark .bg-slate-100 {
    background-color: rgba(255, 255, 255, 0.08) !important;
}
.admin-dashboard.ui-dark .border-slate-200 {
    border-color: rgba(255, 255, 255, 0.12) !important;
}
.admin-dashboard.ui-dark .ring-slate-200 {
    --tw-ring-color: rgba(255, 255, 255, 0.14) !important;
}
.admin-dashboard.ui-dark .bg-white {
    background-color: #0a0a0a !important;
}

.admin-dashboard.ui-dark .text-slate-800 {
    color: #ffffff !important;
}

.admin-dashboard.ui-dark input,
.admin-dashboard.ui-dark select,
.admin-dashboard.ui-dark textarea {
    background-color: #0a0a0a !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}
.admin-dashboard.ui-dark input::placeholder,
.admin-dashboard.ui-dark textarea::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
}

.admin-dashboard.ui-dark table thead th {
    color: rgba(255, 255, 255, 0.55) !important;
}
.admin-dashboard.ui-dark table tbody td {
    color: rgba(255, 255, 255, 0.86) !important;
}

.admin-dashboard.ui-dark a.text-slate-600,
.admin-dashboard.ui-dark a.text-slate-700 {
    color: rgba(255, 255, 255, 0.80) !important;
}

.admin-dashboard.ui-dark .hover\:bg-slate-100:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
}
.admin-dashboard.ui-dark .hover\:bg-slate-50:hover {
    background-color: rgba(255, 255, 255, 0.04) !important;
}
.admin-dashboard.ui-dark .hover\:text-slate-900:hover {
    color: #ffffff !important;
}

/* Make sidebar/menu "active" use theme primary color */
.admin-dashboard.ui-theme-pink .bg-slate-900 {
    background-color: var(--ui-primary) !important;
}
.admin-dashboard.ui-theme-pink .hover\:bg-slate-800:hover {
    background-color: var(--ui-primary-hover) !important;
}

.admin-dashboard .dashboard-content h1,
.admin-dashboard .dashboard-content h2,
.admin-dashboard .dashboard-content h3,
.admin-dashboard .dashboard-content h4,
.admin-dashboard .dashboard-content h5 {
    letter-spacing: -0.01em;
}

.admin-dashboard .dashboard-content .rounded-2xl.border.border-slate-200.bg-white {
    border-color: var(--ui-border);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.admin-dashboard .dashboard-content button {
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 160ms ease;
}

.admin-dashboard .dashboard-content button.bg-slate-900 {
    background-color: var(--ui-primary);
}

.admin-dashboard .dashboard-content button.bg-slate-900:hover {
    background-color: var(--ui-primary-hover);
}

.admin-dashboard .dashboard-content button.bg-emerald-600 {
    background-color: var(--ui-success);
}

.admin-dashboard .dashboard-content button.bg-emerald-600:hover {
    background-color: var(--ui-success-hover);
}

.admin-dashboard .dashboard-content button.bg-rose-600 {
    background-color: var(--ui-danger);
}

.admin-dashboard .dashboard-content button.bg-rose-600:hover {
    background-color: var(--ui-danger-hover);
}

.admin-dashboard .dashboard-content button.border-rose-200 {
    border-color: #fecdd3;
    color: var(--ui-danger);
}

.admin-dashboard .dashboard-content button.border-rose-200:hover {
    background-color: #fff1f2;
}

.admin-dashboard .dashboard-content input,
.admin-dashboard .dashboard-content select,
.admin-dashboard .dashboard-content textarea {
    border-color: var(--ui-border);
    font-size: 0.875rem;
}

.admin-dashboard .dashboard-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-dashboard .dashboard-content table thead th {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.admin-dashboard .dashboard-content table tbody td {
    font-size: 0.875rem;
    color: #334155;
}

.admin-dashboard .dashboard-content .space-y-6 > * + * {
    margin-top: 1.25rem;
}

@media (max-width: 640px) {
    main input,
    main select,
    main textarea,
    main button {
        font-size: 14px;
    }

    main input,
    main select,
    main textarea {
        min-height: 42px;
    }

    main table {
        font-size: 13px;
    }
}