/* =========================================
   1. GLOBAL & TYPOGRAPHY
   ========================================= */
:root {
    /* Brand Colors - High Contrast */
    --primary-color: #2563eb;       /* Royal Blue */
    --primary-dark: #1e40af;        /* Darker Blue for Hover */
    --secondary-color: #475569;     /* Slate Gray */
    
    /* Backgrounds */
    --bg-body: #f1f5f9;             /* Light Gray-Blue (Not white) */
    --bg-card: #ffffff;             /* Pure White */
    
    /* Text Colors (Darker for visibility) */
    --text-main: #0f172a;           /* Almost Black */
    --text-muted: #64748b;          /* Dark Gray */
    
    /* UI Elements */
    --border-color: #cbd5e1;
    --card-radius: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Crisp text on Mac */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.025em;
}

a { text-decoration: none; color: var(--primary-color); }
a:hover { color: var(--primary-dark); }

/* =========================================
   2. NAVBAR (The "Better View")
   ========================================= */
.navbar {
    /* Deep Gradient - Very Professional */
    background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 100%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.25rem;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.navbar-brand i {
    color: #60a5fa; /* Light Blue Accent icon */
}

.nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 5px;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: #ffffff;
    color: #0f172a !important; /* Dark text on White Pill */
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* User Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 10px;
}

/* =========================================
   3. CARDS (High Visibility)
   ========================================= */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: var(--shadow-md);
    border-color: #94a3b8; /* Slightly darker border on hover */
}

.card-header {
    background-color: #ffffff;
    border-bottom: 2px solid #f1f5f9;
    padding: 1rem 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    border-radius: var(--card-radius) var(--card-radius) 0 0 !important;
}

.card-body {
    padding: 1.5rem;
}

/* =========================================
   4. BUTTONS & BADGES
   ========================================= */
.btn {
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Make badges easier to read */
.badge {
    padding: 0.5em 0.8em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge.bg-warning {
    background-color: #fef9c3 !important; /* Very Light Yellow */
    color: #854d0e !important; /* Dark Brown Text */
    border: 1px solid #fde047;
}

.badge.bg-success {
    background-color: #dcfce7 !important;
    color: #14532d !important;
    border: 1px solid #86efac;
}

.badge.bg-danger {
    background-color: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #fca5a5;
}

.badge.bg-secondary {
    background-color: #f1f5f9 !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1;
}

/* =========================================
   5. TABLES
   ========================================= */
.table thead th {
    background-color: #f8fafc;
    color: #475569;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border-bottom: 2px solid #e2e8f0;
}

.table tbody td {
    vertical-align: middle;
    color: #334155;
    font-size: 0.95rem; /* Larger text for table data */
}

.list-group-item {
    border: 1px solid #e2e8f0;
    margin-bottom: 5px;
    border-radius: 6px !important;
}
/* =========================================
   DASHBOARD WELCOME BANNER FIX
   ========================================= */
.welcome-banner {
    /* Deep Enterprise Gradient */
    background: linear-gradient(135deg, #020617 0%, #1e3a8a 100%) !important;
    border: 1px solid #1e40af !important; /* Blue border for definition */
    color: #ffffff !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3) !important;
}

/* Force all text inside to be White */
.welcome-banner h1, 
.welcome-banner h2, 
.welcome-banner h3, 
.welcome-banner p, 
.welcome-banner span,
.welcome-banner div {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5); /* Text shadow for extra readability */
}

/* Make the 'muted' text slightly transparent white instead of gray */
.welcome-banner .text-muted, 
.welcome-banner .opacity-75 {
    color: rgba(255, 255, 255, 0.85) !important; /* 85% White */
}

/* The Background Icon */
.welcome-bg-icon {
    color: #ffffff !important;
    opacity: 0.05 !important; /* Very subtle */
}