/* =====================================================
   ADMINLTE 3 + BOOTSTRAP 4.6 MODERN GRADIENT THEME
   ===================================================== */

:root {
    --grad-primary: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --grad-primary-hover: linear-gradient(135deg, #4f46e5 0%, #0891b2 100%);

    --grad-success: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --grad-danger: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    --grad-warning: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --grad-info: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);

    --grad-sidebar: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

/* =====================================================
   NAVBAR
   ===================================================== */

.main-header.navbar {
    background: var(--grad-primary) !important;
    border-bottom: 0 !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.main-header .nav-link,
.main-header .navbar-nav .nav-link {
    color: #fff !important;
}

/* =====================================================
   SIDEBAR
   ===================================================== */

.main-sidebar {
    background: var(--grad-sidebar) !important;
}

.brand-link {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff !important;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
    background: var(--grad-primary) !important;
    color: #fff !important;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.nav-sidebar .nav-treeview > .nav-item > .nav-link.active {
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 10px;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
    border: 0 !important;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--grad-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--grad-primary-hover) !important;
}

.btn-success {
    background: var(--grad-success) !important;
}

.btn-danger {
    background: var(--grad-danger) !important;
}

.btn-warning {
    background: var(--grad-warning) !important;
    color: #fff !important;
}

.btn-info {
    background: var(--grad-info) !important;
}

/* =====================================================
   CARDS
   ===================================================== */

.card {
    border: 0 !important;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card-header {
    border-bottom: 0 !important;
}

.card-primary:not(.card-outline) > .card-header {
    background: var(--grad-primary) !important;
    color: white;
}

.card-success:not(.card-outline) > .card-header {
    background: var(--grad-success) !important;
    color: white;
}

.card-danger:not(.card-outline) > .card-header {
    background: var(--grad-danger) !important;
    color: white;
}

.card-warning:not(.card-outline) > .card-header {
    background: var(--grad-warning) !important;
    color: white;
}

.card-info:not(.card-outline) > .card-header {
    background: var(--grad-info) !important;
    color: white;
}

/* =====================================================
   BADGES
   ===================================================== */

.badge-primary {
    background: var(--grad-primary) !important;
}

.badge-success {
    background: var(--grad-success) !important;
}

.badge-danger {
    background: var(--grad-danger) !important;
}

.badge-warning {
    background: var(--grad-warning) !important;
    color: white !important;
}

/* =====================================================
   SMALL BOX
   ===================================================== */

.small-box {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.small-box.bg-primary,
.small-box.bg-info {
    background: var(--grad-primary) !important;
}

.small-box.bg-success {
    background: var(--grad-success) !important;
}

.small-box.bg-danger {
    background: var(--grad-danger) !important;
}

.small-box.bg-warning {
    background: var(--grad-warning) !important;
}

/* =====================================================
   INFO BOX
   ===================================================== */

.info-box {
    border-radius: 15px;
    border: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.info-box .info-box-icon {
    background: var(--grad-primary) !important;
    color: white !important;
}

/* =====================================================
   DATATABLES
   ===================================================== */

.page-item.active .page-link {
    background: var(--grad-primary) !important;
    border-color: transparent !important;
}

.page-link {
    color: #6366f1;
}

.page-link:hover {
    color: #4f46e5;
}

/* =====================================================
   FORMS
   ===================================================== */

.form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.15);
}

.custom-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.15);
}

/* =====================================================
   TABLES
   ===================================================== */

.table thead th {
    border-top: 0;
    background: #f8fafc;
}

/* =====================================================
   LOGIN PAGE
   ===================================================== */

.login-page,
.register-page {
    background: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
}

.login-box .card,
.register-box .card {
    border-radius: 20px;
}

/* =====================================================
   SCROLLBAR
   ===================================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

/* Default AdminLTE Table Header */
table.dataTable thead th,
table.dataTable thead td,
.table thead th {
    background: transparent !important;
    color: inherit !important;
    border-top: 0 !important;
}

/* Alerts */
.alert-primary {
    background: var(--grad-primary) !important;
    border: 0 !important;
    color: #fff !important;
}

.alert-success {
    background: var(--grad-success) !important;
    border: 0 !important;
    color: #fff !important;
}

.alert-danger {
    background: var(--grad-danger) !important;
    border: 0 !important;
    color: #fff !important;
}

.alert-warning {
    background: var(--grad-warning) !important;
    border: 0 !important;
    color: #fff !important;
}

.alert-info {
    background: var(--grad-info) !important;
    border: 0 !important;
    color: #fff !important;
}

/* Brand mengikuti warna sidebar */
.main-sidebar .brand-link {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.main-sidebar .brand-link .brand-text {
    color: #ffffff !important;
    font-weight: 600;
}

.main-sidebar .brand-link img {
    opacity: 1 !important;
}

/* Background Body */
body {
    background-color: #1a1f2b !important;
}

.content-wrapper {
    background: #1f2a37 !important; /* khas AdminLTE dark */
}

/* Footer */
.main-footer {
    background-color: #111827 !important;
    color: #cbd5e1 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}
