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

:root {
    --uhamka-blue: #044189;
    --uhamka-sky: #2eafec;
    --uhamka-yellow: #ffec01;
    /* --primary-gradient: linear-gradient(
        135deg,
        var(--uhamka-blue) 0%,
        var(--uhamka-sky) 100%
    ); */
    --primary-gradient: linear-gradient(
        135deg,
        #0f2847 0%,
        #1d4887 50%,
        #2a5fa8 100%
    );
    --surface-glass: rgba(255, 255, 255, 0.95);
    --border-glass: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 8px 32px rgba(4, 65, 137, 0.08);
    --shadow-hover: 0 12px 40px rgba(4, 65, 137, 0.12);
}

body,
.main-content,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
div,
td,
th,
label,
input,
button {
    font-family: "Quicksand", sans-serif !important;
}

body {
    background-color: #f4f7f9;
    letter-spacing: 0.02em;
}

/* Premium Light Colors (replacing dull #e3eaef) */
.bg-light {
    background-color: #f0f4f8 !important;
}
.btn-light {
    background-color: #f0f4f8 !important;
    border-color: #f0f4f8 !important;
    color: var(--uhamka-blue) !important;
}
.btn-light:hover {
    background-color: #e2e8f0 !important;
    border-color: #e2e8f0 !important;
}

/* Premium Sidebar */
/* @media (min-width: 1025px) {
    body:not(.sidebar-mini):not(.no-sidebar) .main-sidebar {
        width: 320px !important;
    }
    body:not(.sidebar-mini):not(.no-sidebar) .navbar {
        left: 320px !important;
    }
    body:not(.sidebar-mini):not(.no-sidebar) .main-content {
        padding-left: 350px !important;
    }
    body:not(.sidebar-mini):not(.no-sidebar) .main-footer {
        padding-left: 350px !important;
    }
} */

.main-sidebar {
    background: var(--surface-glass) !important;
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border-glass);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.02) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

.sidebar-menu li.active > a {
    background: var(--primary-gradient) !important;
    color: white !important;
    border-radius: 12px;
    margin: 0 10px;
    box-shadow: 0 4px 15px rgba(4, 65, 137, 0.2);
}

.sidebar-menu li.active > a i {
    color: white !important;
}

.sidebar-menu li a {
    border-radius: 12px;
    margin: 0 10px;
    transition: all 0.3s ease;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Sidebar Mini Support */
body.sidebar-mini .main-sidebar .sidebar-menu > li > a {
    margin: 0 10px !important;
    padding: 0 !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.sidebar-mini .main-sidebar .sidebar-menu > li > a i {
    margin-right: 0 !important;
    width: auto !important;
}

/* body.sidebar-mini .main-sidebar .sidebar-brand {
    display: none !important;
} */

/* .sidebar-menu li a:hover:not(.active) {
        background: rgba(4, 65, 137, 0.05) !important;
        transform: translateX(4px);
        color: var(--uhamka-blue) !important;
    } */

.sidebar-brand p {
    font-weight: 700;
    color: var(--uhamka-blue) !important;
}

/* Premium Navbar */
.navbar-bg {
    background: var(--primary-gradient) !important;
    height: 75px;
    /* border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px; */
    box-shadow: 0 4px 20px rgba(4, 65, 137, 0.15);
}

.navbar .nav-link-user {
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 30px !important;
    padding: 5px 15px !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.navbar .nav-link-user:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-2px);
}

.navbar .nav-link-user b {
    font-weight: 700;
}

/* Premium Cards */
.card {
    background: var(--surface-glass) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: var(--shadow-soft) !important;
    border-radius: 20px !important;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover) !important;
}

.card .card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03) !important;
    background: transparent !important;
    padding: 20px 25px;
}

.card .card-header h4,
.card .card-header h3 {
    color: var(--uhamka-blue) !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Premium Eye-catching Buttons */
.btn {
    border-radius: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 10px 20px !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px) !important;
}

.btn:active {
    transform: translateY(1px) !important;
}

.btn-primary:not(.btn-link):not(.note-btn):not(.btn-chat) {
    background: var(--primary-gradient) !important;
    background-size: 200% auto !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(4, 65, 137, 0.25) !important;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    background-size: 200% auto !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    background-size: 200% auto !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25) !important;
}

.btn-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    background-size: 200% auto !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25) !important;
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    background-size: 200% auto !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25) !important;
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    background-size: 200% auto !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(100, 116, 139, 0.25) !important;
}

.btn:hover:not(.btn-link) {
    background-position: right center !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Table Enhancements */
.table-responsive {
    border-radius: 12px;
}

.table {
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    background: transparent !important;
}

.table thead th {
    border: none !important;
    background: rgba(4, 65, 137, 0.05) !important;
    color: var(--uhamka-blue) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.85rem !important;
    letter-spacing: 1px;
    padding: 15px !important;
}

.table thead th:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.table thead th:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.table tbody tr {
    background: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
    border-radius: 12px !important;
    transition: box-shadow 0.3s ease !important;
}

.table tbody tr:hover {
    box-shadow: 0 6px 15px rgba(4, 65, 137, 0.08) !important;
}

.table tbody td {
    border: none !important;
    padding: 15px !important;
    vertical-align: middle !important;
}

.table tbody td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.table tbody td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Modals */
.modal-content {
    border-radius: 24px !important;
    border: none !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.98) !important;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border-top-left-radius: 24px !important;
    border-top-right-radius: 24px !important;
}

.modal-header .modal-title {
    color: var(--uhamka-blue);
    font-weight: 700;
}

/* Inputs & Forms */
.form-control {
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    padding: 12px 15px !important;
    height: auto !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    background: #f8fafc !important;
}

.form-control:focus {
    background: #fff !important;
    border-color: var(--uhamka-sky) !important;
    box-shadow: 0 0 0 4px rgba(46, 175, 236, 0.15) !important;
}

/* Select2 Enhancements to match new form-controls */
.select2-container--default .select2-selection--single {
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    height: 45px !important;
    background: #f8fafc !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: 45px !important;
    font-weight: 500 !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 45px !important;
}

/* Premium Badges */
.badge {
    padding: 6px 14px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
}

.badge-primary {
    background: var(--primary-gradient) !important;
    color: white !important;
}

.badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white !important;
}

.badge-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white !important;
}

.badge-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
}

.badge-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    color: white !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: rgba(4, 65, 137, 0.3);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(4, 65, 137, 0.6);
}

/* Header & Typography */
.section-header h1 {
    color: var(--uhamka-blue) !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
}

.section-header {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 25px !important;
}

.breadcrumb-item a {
    color: var(--uhamka-sky);
    font-weight: 600;
}

/* Animation Utilities */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content {
    animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
