/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4f46e5; /* Modern Indigo */
    --primary-hover: #4338ca;
    --sidebar-bg: #111827; /* Rich dark */
    --sidebar-hover: #1f2937;
    --text-color: #374151;
    --bg-color: #f3f4f6;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Base Overrides for Premium Feel */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.btn-primary { 
    background-color: var(--primary-color); 
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* Sidebar Styling */
#sidebar {
    min-width: 250px;
    max-width: 250px;
    min-height: 100vh;
    transition: all 0.3s;
    background-color: var(--sidebar-bg) !important;
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    background-color: #030712 !important;
    border-bottom: 1px solid #1f2937 !important;
}

#sidebar .nav-link {
    transition: all 0.2s ease-in-out;
    opacity: 0.85;
    margin: 0.2rem 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
}

#sidebar .nav-link:hover {
    opacity: 1;
    background-color: var(--sidebar-hover);
    transform: translateX(3px);
}

#sidebar .nav-link.active {
    opacity: 1;
    font-weight: 500;
    background-color: var(--primary-color) !important;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.4);
}

#content {
    min-width: 0; 
}

/* Navbar */
.navbar {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    z-index: 10;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 0.75rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    border-top-left-radius: 0.75rem !important;
    border-top-right-radius: 0.75rem !important;
    padding: 1rem 1.25rem;
}

/* Forms */
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
}

/* Tables */
.table th {
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom-width: 2px;
}
.table td {
    vertical-align: middle;
}

/* Responsive sidebar */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
}

/* Dashboard Widget Gradients & Premium Styling */
.widget-gradient-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
    color: white;
}
.widget-gradient-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}
.widget-gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}
.widget-gradient-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.widget-icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    font-size: 1.75rem;
}

.welcome-banner {
    background: linear-gradient(to right, #ffffff, #f8fafc);
    border-left: 4px solid var(--primary-color);
}
