/* Fallback CSS */
body {
    font-family: 'Nunito', sans-serif;
    background-color: #f3f4f6;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: #4a5568;
    color: #ffffff;
}

.sidebar-link svg {
    margin-right: 0.75rem;
    width: 1.25rem;
    height: 1.25rem;
}

/* Container Styles */
.container {
    width: 100%;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Dashboard Grid and Flex Styles */
.flex {
    display: flex;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: 1rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.gap-6 {
    gap: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

/* Theme Styles */
html.theme-light body {
    background-color: #f3f4f6;
    color: #1a202c;
}

/* Dashboard Card Styles */
.bg-white {
    background-color: #ffffff;
}

.bg-blue-500 {
    background-color: #3b82f6;
}

.bg-green-500 {
    background-color: #10b981;
}

.bg-yellow-500 {
    background-color: #f59e0b;
}

.bg-red-500 {
    background-color: #ef4444;
}

.bg-indigo-500 {
    background-color: #6366f1;
}

.bg-teal-500 {
    background-color: #14b8a6;
}

.bg-orange-500 {
    background-color: #f97316;
}

.hover\:bg-blue-600:hover {
    background-color: #2563eb;
}

.hover\:bg-green-600:hover {
    background-color: #059669;
}

.hover\:bg-yellow-600:hover {
    background-color: #d97706;
}

.hover\:bg-red-600:hover {
    background-color: #dc2626;
}

.hover\:bg-indigo-600:hover {
    background-color: #4f46e5;
}

.hover\:bg-teal-600:hover {
    background-color: #0d9488;
}

.hover\:bg-orange-600:hover {
    background-color: #ea580c;
}

.text-white {
    color: #ffffff;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1f2937;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.p-6 {
    padding: 1.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mr-4 {
    margin-right: 1rem;
}

.w-12 {
    width: 3rem;
}

.h-12 {
    height: 3rem;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.text-center {
    text-align: center;
}

.border-b {
    border-bottom-width: 1px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

/* Dark mode styles */
.dark .dark\:bg-gray-700 {
    background-color: #374151;
}

.dark .dark\:bg-gray-800 {
    background-color: #1f2937;
}

.dark .dark\:bg-gray-900 {
    background-color: #111827;
}

.dark .dark\:bg-blue-700 {
    background-color: #1d4ed8;
}

.dark .dark\:bg-green-700 {
    background-color: #047857;
}

.dark .dark\:bg-yellow-600 {
    background-color: #d97706;
}

.dark .dark\:bg-red-700 {
    background-color: #b91c1c;
}

.dark .dark\:text-white {
    color: #ffffff;
}

.dark .dark\:text-gray-200 {
    color: #e5e7eb;
}

.dark .dark\:text-gray-300 {
    color: #d1d5db;
}

.dark .dark\:text-gray-400 {
    color: #9ca3af;
}

.dark .dark\:border-gray-700 {
    border-color: #374151;
}

.dark .dark\:hover\:bg-blue-800:hover {
    background-color: #1e40af;
}

.dark .dark\:hover\:bg-green-800:hover {
    background-color: #065f46;
}

.dark .dark\:hover\:bg-yellow-700:hover {
    background-color: #b45309;
}

.dark .dark\:hover\:bg-red-800:hover {
    background-color: #991b1b;
}

html.theme-light .admin-layout-main-bg,
html.theme-light .admin-content-area-bg {
    background-color: #e5e7eb;
}

html.theme-light .admin-sidebar {
    background-color: #1f2937;
    color: #f9fafb;
}

html.theme-light .admin-sidebar .sidebar-link {
    color: #f9fafb;
}

html.theme-light .admin-sidebar .sidebar-link:hover,
html.theme-light .admin-sidebar .sidebar-link.active {
    background-color: #374151;
    color: #ffffff;
}

html.theme-light .admin-header {
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

html.theme-light .admin-header-title {
    color: #4b5563;
}

html.theme-light .admin-header-welcome {
    color: #6b7280;
}

/* Dark Theme */
html.theme-dark body {
    background-color: #111827;
    color: #f9fafb;
}

html.theme-dark .admin-layout-main-bg,
html.theme-dark .admin-content-area-bg {
    background-color: #1f2937;
}

html.theme-dark .admin-sidebar {
    background-color: #000000;
    color: #f9fafb;
}

html.theme-dark .admin-sidebar .sidebar-link {
    color: #f9fafb;
}

html.theme-dark .admin-sidebar .sidebar-link:hover,
html.theme-dark .admin-sidebar .sidebar-link.active {
    background-color: #374151;
    color: #ffffff;
}

html.theme-dark .admin-header {
    background-color: #1f2937;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

html.theme-dark .admin-header-title {
    color: #e5e7eb;
}

html.theme-dark .admin-header-welcome {
    color: #d1d5db;
}