/*
 * bimbelmu.com Modern Minimalist Theme
 * 
 * 1. Palet Warna Utama & Latar Belakang:
 *    - Main Content Background: #F8F9FA
 *    - Cards / Containers: #FFFFFF dengan rounded corners (12px) & subtle shadow
 * 
 * 2. Pengaturan Warna Sidebar:
 *    - Latar Belakang Sidebar: #FFFFFF (Clean White)
 *    - Navigasi Inaktif: #4B5563 / #6B7280
 *    - Aksen / Interaktif (Active / Highlight): #FF3366 (Pink/Magenta Cerah)
 * 
 * 3. Warna Teks (Typography):
 *    - Judul Utama (Headings): #111827 (Hitam Pekat / Dark Slate)
 *    - Teks Sekunder / Deskripsi (Body & Subtext): #4B5563 / #6B7280
 * 
 * 4. Warna Aksen & Tombol:
 *    - Tombol Utama / CTA: #FF3366 (Pink / Magenta Cerah)
 *    - Teks Harga & Tautan Penting: #FF3366
 *    - Badge / Notifikasi: #FF3366
 *    - Success: #10B981, Warning: #F59E0B, Danger: #EF4444, Secondary: #64748B
 */

:root,
[data-bs-theme="light"] {
    /* Header Background */
    --tb-header-bg: #dfebfb;

    /* Table Background */
    --tb-table-bg: #f7f7f7;

    /* Primary Accent: Pink / Magenta Cerah */
    --tb-primary: #FF3366;
    --tb-primary-rgb: 255, 51, 102;
    --tb-primary-text-emphasis: #c2185b;
    --tb-primary-bg-subtle: #fff0f3;
    --tb-primary-border-subtle: #ffd6df;

    /* Secondary: Abu-Abu Kebiruan Netral */
    --tb-secondary: #64748B;
    --tb-secondary-rgb: 100, 116, 139;
    --tb-secondary-text-emphasis: #334155;
    --tb-secondary-bg-subtle: #f1f5f9;
    --tb-secondary-border-subtle: #cbd5e1;

    /* Success: Hijau Segar */
    --tb-success: #10B981;
    --tb-success-rgb: 16, 185, 129;
    --tb-success-text-emphasis: #065f46;
    --tb-success-bg-subtle: #ecfdf5;
    --tb-success-border-subtle: #a7f3d0;

    /* Warning: Kuning / Oranye Hangat */
    --tb-warning: #F59E0B;
    --tb-warning-rgb: 245, 158, 11;
    --tb-warning-text-emphasis: #92400e;
    --tb-warning-bg-subtle: #fffbeb;
    --tb-warning-border-subtle: #fde68a;

    /* Danger: Merah Tegas */
    --tb-danger: #EF4444;
    --tb-danger-rgb: 239, 68, 68;
    --tb-danger-text-emphasis: #991b1b;
    --tb-danger-bg-subtle: #fef2f2;
    --tb-danger-border-subtle: #fecaca;

    /* Backgrounds & Text */
    --tb-body-bg: #F8F9FA;
    --tb-body-color: #4B5563;
    --tb-heading-color: #111827;
}

/* ==============================================================
   1. BACKGROUND & TYPOGRAPHY
   ============================================================== */
body {
    background-color: #F8F9FA !important;
    color: #4B5563 !important;
    font-family: var(--tb-font-sans-serif);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.page-title-box h4,
.card-title {
    color: #111827 !important;
    font-weight: 700;
}

p, span, small, label, div {
    color: inherit;
}

.text-dark {
    color: #111827 !important;
}

.text-muted {
    color: #6B7280 !important;
}

.text-secondary {
    color: #4B5563 !important;
}

.brand-title {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #111827;
}

/* ==============================================================
   2. CARDS & CONTAINERS (White, Rounded 12px, Subtle Shadow)
   ============================================================== */
.card {
    background-color: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-header {
    background-color: #FFFFFF !important;
    border-bottom: 1px solid #F3F4F6 !important;
    padding: 1rem 1.25rem;
}

.card-footer {
    background-color: #FFFFFF !important;
    border-top: 1px solid #F3F4F6 !important;
}

/* ==============================================================
   3. SIDEBAR NAVIGATION (Clean White, Magenta Active #FF3366)
   ============================================================== */
.app-menu,
.navbar-menu {
    background: #FFFFFF !important;
    border-right: 1px solid #E5E7EB !important;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.02) !important;
}

.navbar-brand-box {
    background: #FFFFFF !important;
    border-bottom: 1px solid #E5E7EB !important;
}

/* Inactive links & icons */
.navbar-menu .navbar-nav .nav-link {
    color: #4B5563 !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 9px 14px;
    border-radius: 8px;
    margin: 2px 10px;
    transition: all 0.2s ease;
}

.navbar-menu .navbar-nav .nav-link i {
    color: #6B7280 !important;
    font-size: 1.15rem;
    margin-right: 8px;
    transition: color 0.2s ease;
}

/* Hover: Pink / Magenta accent */
.navbar-menu .navbar-nav .nav-link:hover {
    color: #FF3366 !important;
    background-color: var(--tb-header-bg, #dfebfb)  !important;
}

.navbar-menu .navbar-nav .nav-link:hover i {
    color: #FF3366 !important;
}

/* Active Highlight: Pink / Magenta Pill */
.navbar-menu .navbar-nav .nav-link.active {
    color: #FF3366 !important;
    background-color: var(--tb-header-bg, #dfebfb)  !important;
    font-weight: 600 !important;
}

.navbar-menu .navbar-nav .nav-link.active i {
    color: #FF3366 !important;
}

/* Section titles (Sharp and Clearly Visible on White Background) */
:root,
[data-sidebar="light"],
[data-sidebar="dark"],
[data-bs-theme="light"] {
    --tb-vertical-menu-title-color: #475569;
}

.menu-title,
.menu-title span,
li.menu-title,
li.menu-title span,
.navbar-menu .menu-title,
.navbar-menu .menu-title span,
.navbar-menu li.menu-title span {
    color: #475569 !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    opacity: 1 !important;
}

/* ==============================================================
   4. TOPBAR / HEADER (#dfebfb Header Background)
   ============================================================== */
[data-topbar="light"] {
    --tb-header-bg: #dfebfb;
}

.navbar-header,
#page-topbar {
    background-color: var(--tb-header-bg, #dfebfb) !important;
    border-bottom: 1px solid #cddcf0 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.wrapper {
    background-color: var(--tb-header-bg, #dfebfb) !important;
}

.app-search .form-control {
    background-color: rgba(255, 255, 255, 0.75) !important;
    border-color: #c5d9f5 !important;
}
.app-search .form-control:focus {
    background-color: #ffffff !important;
}

/* ==============================================================
   5. BUTTONS & CTA (Pink/Magenta #FF3366 Primary)
   ============================================================== */
.btn-primary {
    --bs-btn-bg: #FF3366 !important;
    --bs-btn-border-color: #FF3366 !important;
    --bs-btn-color: #f4f4fB !important;
    --bs-btn-hover-bg: #e62055 !important;
    --bs-btn-hover-border-color: #d81b4d !important;
    --bs-btn-hover-color: #f4f4fB !important;
    --bs-btn-active-bg: #d81b4d !important;
    --bs-btn-active-border-color: #c01442 !important;
    --bs-btn-active-color: #f4f4fB !important;
    box-shadow: 0 2px 4px rgba(255, 51, 102, 0.25) !important;
    font-weight: 600;
    color: #f4f4fB !important;
}

.btn-outline-primary {
    --bs-btn-color: #FF3366 !important;
    --bs-btn-border-color: #FF3366 !important;
    --bs-btn-hover-bg: #FF3366 !important;
    --bs-btn-hover-border-color: #FF3366 !important;
    --bs-btn-hover-color: #f4f4fB !important;
}

.btn-secondary {
    --bs-btn-bg: #64748B !important;
    --bs-btn-border-color: #64748B !important;
    --bs-btn-color: #f4f4fB !important;
    --bs-btn-hover-bg: #475569 !important;
    --bs-btn-hover-border-color: #334155 !important;
}

.btn-success {
    --bs-btn-bg: #10B981 !important;
    --bs-btn-border-color: #10B981 !important;
    --bs-btn-color: #f4f4fB !important;
    --bs-btn-hover-bg: #059669 !important;
    --bs-btn-hover-border-color: #047857 !important;
}

.btn-warning {
    --bs-btn-bg: #F59E0B !important;
    --bs-btn-border-color: #F59E0B !important;
    --bs-btn-color: #f4f4fB !important;
    --bs-btn-hover-bg: #d97706 !important;
    --bs-btn-hover-border-color: #b45309 !important;
}

.btn-danger {
    --bs-btn-bg: #EF4444 !important;
    --bs-btn-border-color: #EF4444 !important;
    --bs-btn-color: #f4f4fB !important;
    --bs-btn-hover-bg: #dc2626 !important;
    --bs-btn-hover-border-color: #b91c1c !important;
}

/* Nav Pills (Pink/Magenta Accent for Active Tab with #f4f4fB text) */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: #FF3366 !important;
    color: #f4f4fB !important;
}

.nav-pills .nav-link {
    color: #4B5563;
    font-weight: 500;
}

/* ==============================================================
   6. ACCENTS, PRICES, BADGES & NOTIFICATIONS
   ============================================================== */
/* Price tag & highlight links */
.price-tag,
.text-price,
.text-magenta,
a.text-primary {
    color: #FF3366 !important;
}

a {
    color: #FF3366;
    text-decoration: none;
}

a:hover {
    color: #d81b4d;
}

/* Badges */
.badge.bg-primary {
    background-color: #FF3366 !important;
    color: #f4f4fB !important;
}

.badge.bg-primary-subtle,
.badge-soft-primary {
    background-color: rgba(255, 51, 102, 0.1) !important;
    color: #FF3366 !important;
    border: 1px solid rgba(255, 51, 102, 0.2) !important;
}

.badge-notification {
    background-color: #FF3366 !important;
    color: #f4f4fB !important;
    border-radius: 999px;
    font-size: 0.68rem;
    padding: 2px 6px;
}

/* Strict Contrast Protection: Background #FF3366 always uses text color #f4f4fB */
[style*="background-color: #FF3366"],
[style*="background: #FF3366"],
[style*="background-color:#FF3366"],
[style*="background:#FF3366"],
.btn-primary,
.badge-magenta,
.badge-primary-solid {
    color: #f4f4fB !important;
}

.badge-soft-secondary {
    background-color: rgba(100, 116, 139, 0.12) !important;
    color: #334155 !important;
}

.badge-soft-success {
    background-color: rgba(16, 185, 129, 0.15) !important;
    color: #065f46 !important;
}

.badge-soft-warning {
    background-color: rgba(245, 158, 11, 0.15) !important;
    color: #92400e !important;
}

.badge-soft-danger {
    background-color: rgba(239, 68, 68, 0.15) !important;
    color: #991b1b !important;
}

/* ==============================================================
   7. TOASTIFY NOTIFICATIONS
   ============================================================== */
.toastify {
    border-radius: 10px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    padding: 12px 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    z-index: 999999 !important;
    color: #ffffff !important;
    max-width: 420px !important;
    line-height: 1.45 !important;
}

.toastify.toast-success {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%) !important;
    border-left: 5px solid #10B981 !important;
}

.toastify.toast-error {
    background: linear-gradient(135deg, #b91c1c 0%, #EF4444 100%) !important;
    border-left: 5px solid #f87171 !important;
}

.toastify.toast-warning {
    background: linear-gradient(135deg, #d97706 0%, #F59E0B 100%) !important;
    border-left: 5px solid #fbbf24 !important;
}

.toastify.toast-info {
    background: linear-gradient(135deg, #FF3366 0%, #ff527b 100%) !important;
    border-left: 5px solid #ffccd5 !important;
}

.toastify .toast-close {
    color: #ffffff !important;
    opacity: 0.75 !important;
    font-size: 1.25rem !important;
    margin-left: 14px !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.toast-content-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.toast-content-wrapper i {
    font-size: 1.25rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.toast-body-text {
    flex-grow: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==============================================================
   TABLE & CARD-HEADER ENHANCEMENTS (--tb-table-bg: #f7f7f7)
   ============================================================== */
.table {
    --tb-table-bg: #f7f7f7 !important;
    background-color: #f7f7f7 !important;
}

.table > :not(caption) > * > * {
    background-color: var(--tb-table-bg, #f7f7f7) !important;
    border-bottom: 1px solid #e9ecef;
}

.table-hover > tbody > tr:hover > * {
    background-color: #edf2f7 !important;
}

.table thead th,
.table thead.table-light th,
.table-light th {
    background-color: #edf2f7 !important;
    color: #334155 !important;
    font-weight: 600;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid #cbd5e1 !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.card-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.table-search-input {
    min-width: 220px;
    border-radius: 6px;
    font-size: 0.8125rem;
}

/* ==============================================================
   PASSWORD ADDON TOGGLE WITH BORDER & ICON STATE
   ============================================================== */
.password-addon,
.input-group > .btn.password-addon,
.auth-pass-inputgroup .password-addon {
    border: 1px solid #ced4da !important;
    background-color: #ffffff !important;
    color: #64748B !important;
    padding: 0.45rem 0.85rem;
    font-size: 1rem;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    z-index: 4;
}

.password-addon:hover {
    color: #111827 !important;
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.password-addon:active,
.password-addon:focus {
    color: #111827 !important;
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    box-shadow: none !important;
}

.password-addon i {
    font-size: 1.1rem;
    line-height: 1;
    pointer-events: none;
    transition: transform 0.15s ease;
}

.password-addon:active i {
    transform: scale(0.9);
}

/* CSS fallback when input[type=text] is followed by .password-addon */
.auth-pass-inputgroup input[type="text"] + .password-addon i.ri-eye-fill::before,
.input-group input[type="text"] + .password-addon i.ri-eye-fill::before {
    content: "\ecb6";
}

[data-bs-theme="dark"] .password-addon,
[data-bs-theme="dark"] .input-group > .btn.password-addon,
[data-bs-theme="dark"] .auth-pass-inputgroup .password-addon {
    border-color: var(--tb-border-color, #334155) !important;
    background-color: var(--tb-secondary-bg, #1e293b) !important;
    color: #94a3b8 !important;
}

[data-bs-theme="dark"] .password-addon:hover {
    color: #f1f5f9 !important;
    background-color: #334155 !important;
}

/* ==============================================================
   Icon Compatibility Polyfill for Missing RemixIcon Classes
   ============================================================== */
.ri-graduation-cap-line,
[class*=" ri-graduation-cap-line"],
[class^="ri-graduation-cap-line"] {
    font-family: Phosphor !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ri-graduation-cap-line:before,
.ri-graduation-cap-line::before {
    content: "\f449" !important;
}

.ri-lock-check-line,
[class*=" ri-lock-check-line"],
[class^="ri-lock-check-line"] {
    font-family: tabler-icons !important;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.ri-lock-check-line:before,
.ri-lock-check-line::before {
    content: "\f926" !important;
}



