/* Premium Admin UI Enhancements - Blue & Black Theme */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #3b82f6;
    --primary-blue-dark: #1e40af;
    --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --sidebar-bg: rgba(255, 255, 255, 0.8);
    --bg-black: #020617;
}

.dark {
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --sidebar-bg: rgba(15, 23, 42, 0.8);
}

body {
    font-family: 'Outfit', sans-serif !important;
    background-color: #f8fafc !important;
}

.dark body {
    background-color: var(--bg-black) !important;
}

/* Sidebar Styling */
aside#sidebar {
    background: var(--sidebar-bg) !important;
    backdrop-filter: blur(16px) !important;
    border-right: 1px solid var(--glass-border) !important;
}

aside#sidebar .sidebar-content {
    padding: 1.5rem !important;
}

/* Dashboard Cards */
.unfold-card, .module {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(8px) !important;
    border-radius: 20px !important;
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
}

.unfold-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

/* Header Styling */
header {
    background: var(--sidebar-bg) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--glass-border) !important;
}

/* Primary Buttons - Pure Blue */
.button-primary, 
button[type="submit"], 
.btn-primary,
.unfold-button-primary {
    background: var(--primary-gradient) !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2) !important;
    color: white !important;
}

.button-primary:hover, 
button[type="submit"]:hover {
    filter: brightness(1.1) !important;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4) !important;
    transform: translateY(-1px) !important;
}

/* Tables */
.unfold-table thead th {
    background-color: rgba(241, 245, 249, 0.5) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    font-size: 0.75rem !important;
    color: #64748b !important;
    border-bottom: 1px solid var(--glass-border) !important;
}

.dark .unfold-table thead th {
    background-color: rgba(30, 41, 59, 0.5) !important;
    color: #94a3b8 !important;
}

.unfold-table tbody tr {
    transition: background-color 0.2s ease !important;
    border-bottom: 1px solid var(--glass-border) !important;
}

.unfold-table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.05) !important;
}

.dark .unfold-table tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3); /* Blue Thumb */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

/* Model Links in Sidebar */
#sidebar a {
    border-radius: 10px !important;
    margin: 2px 0 !important;
    transition: all 0.2s ease !important;
}

#sidebar a:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    color: var(--primary-blue) !important;
}

.dark #sidebar a:hover {
    background: rgba(59, 130, 246, 0.2) !important;
}

/* Fix for any residual purple icons/elements */
[class*="text-primary"], [class*="text-indigo"], [class*="text-purple"] {
    color: var(--primary-blue) !important;
}

[class*="bg-primary"], [class*="bg-indigo"], [class*="bg-purple"] {
    background-color: var(--primary-blue) !important;
}

[class*="border-primary"], [class*="border-indigo"], [class*="border-purple"] {
    border-color: var(--primary-blue) !important;
}
