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

/* GLOBAL TYPOGRAPHY */
body, h1, h2, h3, h4, h5, h6, p, a, span, div, input, button, select, textarea {
    font-family: 'Inter', sans-serif !important;
}

body {
    background-color: #f3f4f6 !important;
    color: #1f2937 !important;
}

/* CARDS AND PANELS */
.panel {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    background-color: #ffffff !important;
    overflow: hidden;
    margin-bottom: 24px;
}

.panel-heading {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 20px 24px !important;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

.panel-title {
    color: #111827 !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
}

.panel-body {
    padding: 24px !important;
}

/* BUTTONS */
.btn {
    border-radius: 8px !important;
    font-weight: 500 !important;
    padding: 0.5rem 1rem !important;
    transition: all 0.2s ease-in-out !important;
    border: none !important;
}

.btn-primary {
    background-color: #4f46e5 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3) !important;
}

.btn-primary:hover {
    background-color: #4338ca !important;
    box-shadow: 0 6px 8px -1px rgba(79, 70, 229, 0.4) !important;
    transform: translateY(-1px);
}

.btn-default, .btn-light {
    background-color: #ffffff !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.btn-default:hover, .btn-light:hover {
    background-color: #f9fafb !important;
    border-color: #9ca3af !important;
}

.btn-success {
    background-color: #10b981 !important;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3) !important;
}
.btn-success:hover {
    background-color: #059669 !important;
}

/* FORMS AND INPUTS */
.form-control, select {
    border-radius: 8px !important;
    border: 1px solid #d1d5db !important;
    padding: 0.5rem 1rem !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease !important;
    font-size: 0.95rem !important;
}

.form-control:focus, select:focus {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2) !important;
    outline: none !important;
}

/* HEADER AND SIDEBAR */
.header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

.sidebar-left {
    background-color: #111827 !important; /* Premium dark sidebar */
    box-shadow: 2px 0 8px rgba(0,0,0,0.1) !important;
}

ul.nav-main > li > a {
    color: #9ca3af !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    margin: 4px 12px !important;
    transition: all 0.2s ease !important;
}

ul.nav-main > li > a:hover {
    background-color: #1f2937 !important;
    color: #ffffff !important;
}

ul.nav-main > li.nav-active > a {
    background-color: #4f46e5 !important;
    color: #ffffff !important;
    box-shadow: none !important; /* remove the old inset shadow */
}

ul.nav-main > li.nav-expanded > a {
    background-color: #1f2937 !important;
    color: #ffffff !important;
}

html.sidebar-light:not(.dark) ul.nav-main > li.nav-active > a {
    color: #ffffff !important;
}

/* TABLES */
.table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table th {
    background-color: #f9fafb !important;
    color: #4b5563 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em !important;
    padding: 12px 16px !important;
    border-top: none !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.table td {
    padding: 16px !important;
    vertical-align: middle !important;
    border-top: 1px solid #f3f4f6 !important;
    color: #374151 !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #ffffff !important;
}
.table-striped tbody tr:nth-of-type(even) {
    background-color: #f9fafb !important;
}

.table-hover tbody tr:hover {
    background-color: #f3f4f6 !important;
}

/* ALERTS & NOTIFICATIONS */
.alert {
    border-radius: 8px !important;
    border: none !important;
}
.alert-info { background-color: #eff6ff !important; color: #1e40af !important; }
.alert-success { background-color: #ecfdf5 !important; color: #065f46 !important; }
.alert-warning { background-color: #fffbeb !important; color: #92400e !important; }
.alert-danger { background-color: #fef2f2 !important; color: #991b1b !important; }

/* MISC TWEAKS */
a {
    color: #4f46e5 !important;
    transition: color 0.2s ease !important;
}
a:hover {
    color: #4338ca !important;
    text-decoration: none !important;
}

/* WIDGETS & STATS */
.widget-summary {
    border-radius: 12px !important;
    overflow: hidden;
}
.widget-summary .summary-icon {
    border-radius: 12px !important;
}
