/* =========================
   FONT
========================= */

/* Google Font */
/* =========================
   FONT : PLUS JAKARTA SANS
========================= */

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

body,
.btn,
.form-control,
.card,
.nav-sidebar,
.table,
.navbar,
.sidebar,
.content-wrapper {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
}


/* OPTIONAL:
   bikin typography lebih modern */

body {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.1px;
    color: #1e293b;
}

h1,h2,h3,h4,h5,h6 {
    font-weight: 700;
    letter-spacing: -0.4px;
}


/* =========================
   BUTTON
========================= */

.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all .2s ease;
    border: none;
}

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

/* Primary */
.btn-primary {
    background: #6366f1;
}

.btn-primary:hover {
    background: #5558e3;
}

/* Success */
.btn-success {
    background: #10b981;
}

/* Danger */
.btn-danger {
    background: #ef4444;
}

/* Soft Button */
.btn-light {
    background: #f1f5f9;
    color: #334155;
}


/* =========================
   BADGE
========================= */

.badge {
    border-radius: 999px;
    padding: 0.45em 0.8em;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: .3px;
}

/* Soft modern colors */
.bg-primary {
    background: #e0e7ff !important;
    color: #4338ca !important;
}

.bg-success {
    background: #d1fae5 !important;
    color: #065f46 !important;
}

.bg-danger {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

.bg-warning {
    background: #fef3c7 !important;
    color: #92400e !important;
}

.bg-info {
    background: #dbeafe !important;
    color: #1e40af !important;
}
/* =========================
   CARD MODERN
========================= */

.card {
    border: 0;
    border-radius: 16px;
    box-shadow:
        0 1px 3px rgba(15,23,42,.04),
        0 1px 2px rgba(15,23,42,.02);
}

.card-header {
    border-bottom: 1px solid #f1f5f9;
    background: white;
    border-radius: 16px 16px 0 0 !important;
}


/* =========================
   INPUT MODERN
========================= */

.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    min-height: 42px;
    box-shadow: none !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(99,102,241,.10) !important;
}


/* =========================
   TABLE MODERN
========================= */

.table {
    --bs-table-bg: transparent;
}

.table thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
}

.table tbody tr {
    transition: all .15s ease;
}

.table tbody tr:hover {
    background: #f8fafc;
}


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

.sidebar-dark-primary {
    background: #0f172a !important;
}

.nav-sidebar .nav-link {
    border-radius: 10px;
    margin-bottom: 4px;
    transition: all .15s ease;
}

.nav-sidebar .nav-link:hover {
    background: rgba(255,255,255,.06);
}

.nav-sidebar .nav-link.active {
    background: #6366f1 !important;
}


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

.main-header {
    border-bottom: 1px solid #e2e8f0;
}

.navbar-white {
    background: rgba(255,255,255,.85) !important;
    backdrop-filter: blur(8px);
}
/* =========================
   ICON IMPROVEMENT
========================= */

/* Bootstrap Icons */
.bi {
    font-size: 1.05rem;
    vertical-align: -0.125em;
}

/* Sidebar icon */
.nav-sidebar .nav-icon {
    font-size: 1.1rem !important;
    margin-right: .65rem;
}

/* Navbar icon */
.navbar .bi {
    font-size: 1.15rem;
}

/* Button icon */
.btn .bi {
    font-size: 1rem;
}

/* Card tools icon */
.card-tools .bi {
    font-size: .95rem;
    opacity: .85;
}

/* Make icon slightly smoother */
.bi::before {
    font-weight: 600 !important;
}
/* =========================
   PAGE BACKGROUND
========================= */

.content-wrapper {
    background: #f8fafc;
}


/* =========================
   CARD HEADER
========================= */

.card-title {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
}


/* =========================
   TABLE ROW
========================= */

.table tbody td {
    vertical-align: middle;
    padding-top: 14px;
    padding-bottom: 14px;
}


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

.nav-sidebar .nav-link.active {
    box-shadow: 0 4px 12px rgba(99,102,241,.18);
}


/* =========================
   BUTTON
========================= */

.btn {
    box-shadow: 0 1px 2px rgba(15,23,42,.06);
}


/* =========================
   INPUT PLACEHOLDER
========================= */

.form-control::placeholder {
    color: #94a3b8;
    font-weight: 500;
}
/* =========================
   JAKARTA COLOR PALETTE
========================= */

:root {

    /* Primary */
    --jakarta-primary: #1e3a5f;
    --jakarta-primary-hover: #27496d;

    /* Gold Accent */
    --jakarta-gold: #c89b3c;
    --jakarta-gold-soft: #f6ead1;

    /* Neutral */
    --jakarta-bg: #f8fafc;
    --jakarta-card: #ffffff;
    --jakarta-border: #e2e8f0;

    /* Text */
    --jakarta-text: #1e293b;
    --jakarta-muted: #64748b;
}


/* =========================
   BODY
========================= */

body,
.content-wrapper {
    background: var(--jakarta-bg);
    color: var(--jakarta-text);
}


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

.sidebar-dark-primary {
    background: #16263d !important;
}

.nav-sidebar .nav-link.active {
    background: linear-gradient(
        135deg,
        var(--jakarta-primary),
        #2d4f73
    ) !important;

    box-shadow:
        0 4px 14px rgba(30,58,95,.22);
}


/* Hover */
.nav-sidebar .nav-link:hover {
    background: rgba(255,255,255,.06);
}


/* =========================
   BUTTON
========================= */

.btn-primary {
    background: var(--jakarta-primary);
}

.btn-primary:hover {
    background: var(--jakarta-primary-hover);
}

/* Gold button */
.btn-warning,
.btn-gold {
    background: var(--jakarta-gold);
    border: none;
    color: white;
}

.btn-warning:hover,
.btn-gold:hover {
    background: #b88a2d;
}


/* =========================
   BADGE
========================= */

.bg-primary {
    background: #dbe7f5 !important;
    color: var(--jakarta-primary) !important;
}

.bg-warning {
    background: var(--jakarta-gold-soft) !important;
    color: #8b6914 !important;
}


/* =========================
   CARD
========================= */

.card {
    background: var(--jakarta-card);
    border: 1px solid rgba(226,232,240,.7);
}


/* =========================
   TABLE HEADER
========================= */

.table thead th {
    color: var(--jakarta-muted);
}
