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

:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --dark: #1e2125;
    --darker: #111417;
    --light: #f8f9fa;
    --muted: #6c757d;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f6f9;
    color: #343a40;
    -webkit-font-smoothing: antialiased;
}

#wrapper {
    overflow-x: hidden;
}

#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -15rem;
    transition: margin 0.3s ease-in-out;
    width: 15rem;
    background: linear-gradient(180deg, var(--dark) 0%, var(--darker) 100%);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

#sidebar-wrapper .list-group {
    width: 15rem;
}

#page-content-wrapper {
    min-width: 100vw;
    transition: min-width 0.3s ease-in-out;
}

body.sb-sidenav-toggled #wrapper #sidebar-wrapper {
    margin-left: 0;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }
    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }
    body.sb-sidenav-toggled #wrapper #sidebar-wrapper {
        margin-left: -15rem;
    }
}

/* Custom Nav links */
.list-group-item {
    transition: all 0.2s;
    font-weight: 500;
}
.list-group-item:hover {
    background-color: rgba(255,255,255,0.05) !important;
    padding-left: 1.5rem !important;
}

.active-gradient {
    background: linear-gradient(90deg, #0d6efd 0%, #0a58ca 100%) !important;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
    font-weight: 600;
}

/* Table overrides */
.custom-table th {
    letter-spacing: 0.5px;
    background-color: #f1f3f5;
    border-bottom: 2px solid #dee2e6;
}
.custom-table td {
    vertical-align: middle;
}
.custom-table tbody tr {
    transition: background-color 0.2s;
}
.custom-table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.02);
}

/* Dashboard Cards */
.dashboard-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
    border-top: 4px solid transparent;
}
.dashboard-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
}

/* Utilities */
.cursor-pointer {
    cursor: pointer;
}

label.border-dashed {
    border-style: dashed !important;
    transition: border-color 0.2s, background-color 0.2s;
}
label.border-dashed:hover {
    border-color: #0d6efd !important;
    background-color: #f1f3f5 !important;
}

.fit-content {
    width: max-content;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}
.input-group-text {
    border-radius: 0.5rem;
}

.bg-primary-subtle {
    background-color: rgba(13,110,253,.1) !important;
}
.bg-success-subtle {
    background-color: rgba(25,135,84,.1) !important;
}
.bg-danger-subtle {
    background-color: rgba(220,53,69,.1) !important;
}

.badge {
    font-weight: 600;
    letter-spacing: 0.3px;
}
