/*
 * ============================================================
 *  SEKAR THEME: "Modern Medical Blue"
 *  Created: 2026-03-06
 *
 *  CARA REVERT ke tampilan semula:
 *  1. Buka index.php → comment/hapus baris:
 *     <link rel="stylesheet" href="dist/css/sekar-theme-blue.css">
 *  2. Buka login.php  → comment/hapus baris yang sama
 *  Selesai! Tidak ada perubahan lain.
 * ============================================================
 */

/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
    --sekar-accent: #0ea5e9;
    /* sky-500  */
    --sekar-accent-2: #6366f1;
    /* indigo-500 */
    --sekar-accent-dark: #0284c7;
    /* sky-600  */
    --sekar-sidebar-bg: #0b1120;
    --sekar-card-hover-shadow: 0 8px 32px rgba(14, 165, 233, 0.14);
    --card-radius: 14px;
}

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

/* Terapkan Inter hanya ke elemen teks, BUKAN ke icon font (FA, Ionicons dll) */
body,
p,
span:not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not([class*="ion-"]),
h1,
h2,
h3,
h4,
h5,
h6,
a,
li,
td,
th,
label,
input,
select,
textarea,
button,
.nav-link p,
.brand-text,
.card-title,
.card-body,
.form-control {
    font-family: 'Inter', 'Source Sans Pro', sans-serif !important;
}

/* Pastikan Font Awesome TIDAK tersentuh */
.fa,
.fas,
.far,
.fab,
.fal,
.fad,
[class*=" fa-"],
[class^="fa-"],
[class*=" ion-"],
[class^="ion-"],
.nav-icon {
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", "FontAwesome", "Ionicons" !important;
}

/* ============================================================
   SIDEBAR – Dark Navy + Blue Accent
   ============================================================ */

/* Background sidebar dengan subtle gradient */
.main-sidebar {
    background: linear-gradient(180deg, #070e1c 0%, #0f172a 60%, #0b132b 100%) !important;
    border-right: 1px solid rgba(14, 165, 233, 0.08) !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35) !important;
}

/* Brand/logo area */
.brand-link {
    background: linear-gradient(135deg, #050d1a 0%, #0b1120 100%) !important;
    border-bottom: 1px solid rgba(14, 165, 233, 0.18) !important;
    padding: 14px 16px !important;
}

/* Logo text – gradient text biru ke indigo */
.brand-text,
.brand-link .brand-text {
    background: linear-gradient(90deg, #38bdf8, #a5b4fc) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 800 !important;
    letter-spacing: 1.5px !important;
    font-size: 1rem !important;
}

/* User panel foto – glow biru */
.user-panel .image img {
    border: 2px solid var(--sekar-accent) !important;
    box-shadow: 0 0 14px rgba(14, 165, 233, 0.45) !important;
    transition: box-shadow 0.3s ease !important;
}

.user-panel .image img:hover {
    box-shadow: 0 0 22px rgba(14, 165, 233, 0.7) !important;
}

/* User name warna lebih cerah */
.user-panel .info a {
    color: #e2e8f0 !important;
    text-decoration: none !important;
}

/* Nav link default */
.nav-sidebar .nav-link {
    color: #94a3b8 !important;
    border-radius: 8px !important;
    margin-bottom: 3px !important;
    font-weight: 500 !important;
    border: 1px solid transparent !important;
    transition: all 0.22s ease !important;
    padding: 9px 14px !important;
}

/* Hover nav link */
.nav-sidebar .nav-link:hover {
    background: rgba(14, 165, 233, 0.09) !important;
    color: #e2e8f0 !important;
    border-color: rgba(14, 165, 233, 0.22) !important;
    transform: translateX(3px) !important;
}

/* ACTIVE nav link – Blue-to-Indigo gradient */
.nav-sidebar .nav-link.active,
.nav-sidebar .nav-item.active>.nav-link,
.sidebar-dark-primary .nav-sidebar>.nav-item>.nav-link.active,
.sidebar-dark-primary .nav-sidebar>.nav-item.menu-open>.nav-link {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4) !important;
    border-color: transparent !important;
    transform: translateX(0) !important;
}

/* Icon warna */
.nav-sidebar .nav-link .nav-icon {
    color: #64748b !important;
    transition: color 0.2s ease !important;
}

.nav-sidebar .nav-link:hover .nav-icon,
.nav-sidebar .nav-link.active .nav-icon {
    color: #ffffff !important;
}

/* Treeview sub-menu */
.nav-sidebar>.nav-item>.nav-treeview {
    background-color: rgba(0, 0, 0, 0.15) !important;
    border-left: 2px solid rgba(14, 165, 233, 0.25) !important;
    border-radius: 0 0 6px 6px !important;
    margin-left: 12px !important;
    padding: 4px 0 !important;
}

/* Nav header labels */
.nav-header {
    color: #334155 !important;
    font-weight: 700 !important;
    font-size: 0.68rem !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    padding: 1rem 1rem 0.4rem !important;
}

/* Logout link */
.nav-sidebar .nav-link.text-danger {
    color: #f87171 !important;
}

.nav-sidebar .nav-link.text-danger:hover {
    background: rgba(239, 68, 68, 0.1) !important;
    color: #fca5a5 !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
}

/* Scrollbar sidebar – warna biru */
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.35) !important;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 165, 233, 0.6) !important;
}

/* ============================================================
   TOP NAVBAR – Frosted Glass
   ============================================================ */
.main-header {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(14, 165, 233, 0.12) !important;
    box-shadow: 0 2px 20px rgba(14, 165, 233, 0.07) !important;
}

.main-header .nav-link {
    color: #334155 !important;
}

/* Breadcrumb */
.breadcrumb-item.active {
    color: var(--sekar-accent) !important;
    font-weight: 600 !important;
}

/* ============================================================
   CARDS – Rounded & Hover Lift
   ============================================================ */
.card {
    border-radius: var(--card-radius) !important;
    border: none !important;
    box-shadow: 0 2px 16px rgba(14, 165, 233, 0.07) !important;
    transition: box-shadow 0.3s ease, transform 0.25s ease !important;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--sekar-card-hover-shadow) !important;
    transform: translateY(-2px) !important;
}

.card-header {
    background: linear-gradient(135deg, #f8fbff 0%, #eff6ff 100%) !important;
    border-bottom: 1px solid rgba(14, 165, 233, 0.1) !important;
    border-radius: var(--card-radius) var(--card-radius) 0 0 !important;
    padding: 14px 20px !important;
}

.card-title {
    color: #1e3a5f !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.28) !important;
    transition: all 0.25s ease !important;
    border-radius: 8px !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%) !important;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.45) !important;
    transform: translateY(-1px) !important;
    color: #fff !important;
}

/* Secondary & info btn */
.btn-info {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25) !important;
    transition: all 0.25s ease !important;
}

.btn-info:hover {
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4) !important;
    transform: translateY(-1px) !important;
    color: #fff !important;
}

/* Success btn */
.btn-success {
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
}

.btn-success:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.35) !important;
}

/* Danger btn */
.btn-danger {
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
}

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

/* Warning btn */
.btn-warning {
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
}

/* ============================================================
   TABLES
   ============================================================ */
.table thead th {
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%) !important;
    color: #1e3a5f !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid rgba(14, 165, 233, 0.18) !important;
    vertical-align: middle !important;
}

.table tbody tr:hover>td {
    background-color: rgba(14, 165, 233, 0.04) !important;
    transition: background 0.2s ease !important;
}

/* ============================================================
   FORM INPUTS – Focus Glow Biru
   ============================================================ */
.form-control:focus,
.form-select:focus {
    border-color: var(--sekar-accent) !important;
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.2) !important;
}

.input-group-text {
    background: linear-gradient(135deg, #eff6ff, #eef2ff) !important;
    border-color: #d1d5db !important;
    color: var(--sekar-accent) !important;
    font-weight: 600 !important;
}

/* ============================================================
   DASHBOARD STAT BOXES (small-box)
   ============================================================ */
.small-box {
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.small-box:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14) !important;
}

.small-box .inner {
    padding: 14px !important;
}

/* ============================================================
   BADGES & PILLS
   ============================================================ */
.badge {
    border-radius: 6px !important;
    font-weight: 600 !important;
    padding: 4px 8px !important;
}

.badge-primary,
.bg-primary {
    background: linear-gradient(135deg, #0ea5e9, #6366f1) !important;
}

/* ============================================================
   DATATABLE OVERRIDE
   ============================================================ */
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, #0ea5e9, #6366f1) !important;
    border-color: transparent !important;
    color: #fff !important;
    border-radius: 6px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(14, 165, 233, 0.1) !important;
    border-color: rgba(14, 165, 233, 0.2) !important;
    border-radius: 6px !important;
}

/* ============================================================
   SELECT2 OVERRIDE
   ============================================================ */
.select2-container--default .select2-selection--single {
    border-radius: 8px !important;
    border-color: #d1d5db !important;
    height: 38px !important;
    line-height: 36px !important;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--sekar-accent) !important;
    box-shadow: 0 0 0 0.18rem rgba(14, 165, 233, 0.2) !important;
}

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

/* Splash screen ganti ke biru-indigo */
.splash-screen {
    background: linear-gradient(-45deg, #0ea5e9, #6366f1, #0284c7, #4f46e5) !important;
    background-size: 400% 400% !important;
}

/* Login card jadi lebih premium */
.login-container {
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.2), 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    border-top: 4px solid var(--sekar-accent) !important;
    background: rgba(255, 255, 255, 0.97) !important;
    max-width: 380px !important;
    padding: 36px !important;
}

/* Login title */
.login-container h5 {
    font-weight: 800 !important;
    font-size: 1.4rem !important;
    background: linear-gradient(135deg, #0ea5e9, #6366f1) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    letter-spacing: 1px !important;
}

/* Login subtitle */
.login-container .text-muted {
    color: #64748b !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
}

/* Login button */
.btn-login {
    background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 12px !important;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35) !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
}

.btn-login:hover {
    background: linear-gradient(135deg, #0284c7 0%, #4f46e5 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(14, 165, 233, 0.5) !important;
}

/* Login input focus */
.login-container .form-control:focus {
    border-color: var(--sekar-accent) !important;
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.2) !important;
}

.login-container .input-group-text {
    color: var(--sekar-accent) !important;
    background: #eff6ff !important;
    border-right: none !important;
}

/* Pulse circle di splash screen */
.pulse {
    background: rgba(255, 255, 255, 0.15) !important;
}

/* ============================================================
   MISC UX IMPROVEMENTS
   ============================================================ */

/* Smooth transition content */
.content-wrapper {
    transition: margin-left 0.3s ease !important;
}

/* Alert redesign */
.alert {
    border-radius: 10px !important;
    border-left: 4px solid transparent !important;
}

.alert-success {
    border-left-color: #22c55e !important;
}

.alert-danger {
    border-left-color: #ef4444 !important;
}

.alert-warning {
    border-left-color: #f59e0b !important;
}

.alert-info {
    border-left-color: #0ea5e9 !important;
}

/* Section header / page title */
.content-header h1 {
    font-weight: 800 !important;
    color: #1e3a5f !important;
}