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

/* Global Typography Override */
body, h1, h2, h3, h4, h5, h6, .card-title, .info-box-text, .info-box-number, a, p, span {
    font-family: 'Inter', sans-serif !important;
}

/* Base Body Color */
body {
    background-color: #f4f6f9 !important; /* Soft, modern light gray background */
    color: #334155 !important;
}

/* -------------------------------
   Cards & Widgets Redesign 
   ------------------------------- */
.card, .info-box, .widget-stat, .widget-card-user {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #ffffff !important;
    overflow: hidden;
}

.card:hover, .info-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04) !important;
}

.card-header {
    background-color: transparent !important;
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 1.25rem 1.5rem !important;
}

.card-body {
    padding: 1.5rem !important;
}

/* -------------------------------
   Modern Gradients for Widgets 
   ------------------------------- */
/* Instead of flat blue, use a rich indigo gradient */
.bg-c-blue, .bg-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%) !important;
    color: #ffffff !important;
}

/* Instead of flat green/teal, use an emerald gradient */
.bg-c-green, .bg-success, .active-lightblue .navbar-lightblue, .title-lightblue {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%) !important;
    color: #ffffff !important;
}

/* Other stylish gradients */
.bg-c-yellow, .bg-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%) !important;
}
.bg-c-red, .bg-danger {
    background: linear-gradient(135deg, #EF4444 0%, #F87171 100%) !important;
}

/* Add subtle opacity to the widget icons for a premium look */
.info-box-icon i, .widget-card-user i, .card .icon i {
    opacity: 0.8;
}

/* -------------------------------
   Top Navigation Bar 
   ------------------------------- */
/* Modern glassmorphism or clean white header */
.pcoded-header, .main-header {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
}

/* Adjust top nav links */
.pcoded-header .navbar-nav > li > a, .main-header .nav-link {
    color: #475569 !important;
    font-weight: 500;
}

/* -------------------------------
   Sidebar Aesthetics 
   ------------------------------- */
.pcoded-navbar, .main-sidebar {
    background-color: #0F172A !important; /* Deep Slate */
    box-shadow: 4px 0 10px rgba(0,0,0,0.05) !important;
}

/* Sidebar Links */
.pcoded-navbar .pcoded-inner-navbar li > a {
    color: #94A3B8 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 4px 8px;
    padding: 10px 15px !important;
}

.pcoded-navbar .pcoded-inner-navbar li.active > a,
.pcoded-navbar .pcoded-inner-navbar li > a:hover {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3) !important;
}

/* Sidebar Headers */
.pcoded-navbar .pcoded-inner-navbar li.pcoded-menu-caption {
    color: #64748B !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px;
    margin-top: 15px;
}

/* -------------------------------
   Buttons 
   ------------------------------- */
.btn {
    border-radius: 8px !important;
    font-weight: 500 !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s;
    border: none !important;
}
.btn-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%) !important;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3) !important;
}
.btn-primary:hover {
    box-shadow: 0 6px 8px -1px rgba(79, 70, 229, 0.4) !important;
    transform: translateY(-1px);
}
.btn-success {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%) !important;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3) !important;
}
.btn-success:hover {
    box-shadow: 0 6px 8px -1px rgba(16, 185, 129, 0.4) !important;
    transform: translateY(-1px);
}

/* -------------------------------
   Tables Data 
   ------------------------------- */
.table {
    color: #334155 !important;
}
.table thead th {
    border-bottom: 2px solid #e2e8f0 !important;
    color: #64748B !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    background-color: #f8fafc !important;
}
.table td {
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: middle !important;
}

/* -------------------------------
   Form Controls
   ------------------------------- */
.form-control, .select2-container .select2-selection--single {
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 0.5rem 1rem !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    border-color: #6366F1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
}
