/* Kang1 light theme. Kept separate from the established dark palette. */
[data-theme="light"] {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-gradient: linear-gradient(135deg, #2563eb, #1d4ed8);
    --primary-soft: #eff6ff;
    --primary-soft-border: #bfdbfe;
    --primary-text-on-soft: #1d4ed8;
    --accent: #2563eb;
    --accent-soft: #eff6ff;
    --accent-border: #bfdbfe;
    --theme-bg-page: #f5f7fa;
    --theme-bg-sidebar: #ffffff;
    --theme-bg-topbar: #ffffff;
    --theme-bg-primary: #ffffff;
    --theme-bg-secondary: #f8fafc;
    --theme-bg-tertiary: #eef2f6;
    --theme-input-bg: #ffffff;
    --theme-text-primary: #172b4d;
    --theme-text-secondary: #475569;
    --theme-text-muted: #64748b;
    --theme-border-color: #dfe6ee;
    --theme-border-light: #e5eaf1;
    --theme-accent-soft: #eff6ff;
    --theme-accent-text: #1d4ed8;
}
[data-theme="light"] body {
    background: var(--theme-bg-page) !important;
    -webkit-font-smoothing: antialiased;
}
[data-theme="light"] .brand-name,
[data-theme="light"] .page-head-title,
[data-theme="light"] .section-header-text h2,
[data-theme="light"] .welcome-banner h2,
[data-theme="light"] .profile-menu .user-name,
[data-theme="light"] .profile-menu .user-avatar {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    letter-spacing: -0.035em;
}
[data-theme="light"] .sidebar {
    background: #fff !important;
    border-right: 1px solid #e5eaf1 !important;
}
[data-theme="light"] .sidebar .brand-wrapper {
    padding: 12px 10px;
    margin-bottom: 22px;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
}
[data-theme="light"] .brand-logo {
    background: linear-gradient(145deg, #3b82f6, #1d4ed8);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, .18);
}
[data-theme="light"] .brand-name { font-size: 17px; font-weight: 800; color: #172b4d; }
[data-theme="light"] .brand-sub { color: #64748b; font-size: 9px; letter-spacing: .08em; }
[data-theme="light"] .sidebar .sidebar-nav-label { color: #64748b; font-size: 10px; letter-spacing: .12em; }
[data-theme="light"] .sidebar .nav-link {
    color: #475569 !important;
    border-radius: 12px;
    font-size: 13px;
    min-height: 48px;
}
[data-theme="light"] .sidebar .nav-link i { background: #f1f5f9; color: #64748b; }
[data-theme="light"] .sidebar .nav-link:hover { background: #f8fafc; color: #1d4ed8 !important; }
[data-theme="light"] .sidebar .nav-link.active {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border-color: #dbeafe;
    box-shadow: inset 3px 0 0 #2563eb;
}
[data-theme="light"] .sidebar .nav-link.active i { color: #2563eb !important; background: #dbeafe; }
[data-theme="light"] .sidebar-hamburger {
    color: #475569;
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: none;
}
[data-theme="light"] .topbar { background: #fff !important; border-bottom: 1px solid #e5eaf1 !important; box-shadow: none; }
[data-theme="light"] .topbar-pill,
[data-theme="light"] .hero-pill,
[data-theme="light"] .user-chip { background: #f8fafc; color: #475569; border-color: #e2e8f0; }
[data-theme="light"] .profile-menu-trigger { background: #fff; border-radius: 12px; }
[data-theme="light"] .profile-menu .user-avatar { background: #eff6ff; color: #2563eb; box-shadow: none; border: 1px solid #dbeafe; }
[data-theme="light"] .menu-toggle,
[data-theme="light"] .theme-toggle { border-color: #e2e8f0; background: #fff; color: #475569; border-radius: 12px; }
[data-theme="light"] .page-head { margin-bottom: 24px; align-items: center; }
[data-theme="light"] .page-head-title { font-size: clamp(23px, 2vw, 28px); font-weight: 800; line-height: 1.3; }
[data-theme="light"] .page-head-sub { color: #64748b; font-size: 13px; margin-top: 7px; }
[data-theme="light"] .page-head-stat { background: #fff; padding: 13px 18px; border-radius: 14px; box-shadow: none; }
[data-theme="light"] .page-head-stat-value { color: #2563eb; font-variant-numeric: tabular-nums; }
[data-theme="light"] .page-head-stat-label { color: #64748b; font-size: 10px; letter-spacing: .07em; }
[data-theme="light"] .toolbar {
    padding: 12px;
    border-radius: 16px;
    border-color: #e5eaf1 !important;
    box-shadow: 0 2px 5px rgba(23, 43, 77, .025);
    gap: 12px;
    margin-bottom: 24px;
}
[data-theme="light"] .toolbar .search-wrap .form-input { min-height: 42px; background: #f8fafc !important; border: 1px solid #edf1f5 !important; border-radius: 10px; }
[data-theme="light"] .form-input::placeholder { color: #64748b; opacity: 1; }
[data-theme="light"] .form-input:focus-visible,
[data-theme="light"] .btn:focus-visible,
[data-theme="light"] .nav-link:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
[data-theme="light"] .btn-primary { background: #2563eb !important; box-shadow: 0 3px 7px rgba(37, 99, 235, .14); }
[data-theme="light"] .btn-primary:hover { background: #1d4ed8 !important; box-shadow: 0 4px 10px rgba(37, 99, 235, .18); filter: none; }
[data-theme="light"] .btn-secondary { background: #fff !important; border-color: #dfe6ee !important; color: #475569 !important; }
[data-theme="light"] .btn-ghost { background: #fff !important; border-color: #dbe3ee !important; color: #334155 !important; }
[data-theme="light"] .btn-ghost:hover,
[data-theme="light"] .btn-secondary:hover { background: #f1f5f9 !important; border-color: #cbd5e1 !important; }
[data-theme="light"] .page-dashboard .accounts-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
    gap: 22px;
    align-items: stretch;
}
[data-theme="light"] .account-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px;
    box-shadow: 0 3px 8px rgba(23, 43, 77, .025), 0 12px 28px -22px rgba(23, 43, 77, .22);
    transition: border-color .18s ease, box-shadow .18s ease;
}
[data-theme="light"] .account-card:hover { border-color: #c5d5eb !important; box-shadow: 0 10px 26px -12px rgba(23, 43, 77, .16); transform: none; }
[data-theme="light"] .account-card::before { height: 0; }
[data-theme="light"] .account-card-body { padding: 24px 24px 20px; }
[data-theme="light"] .account-card-header { margin-bottom: 26px; gap: 12px; }
[data-theme="light"] .account-avatar { width: 46px; height: 46px; border-radius: 14px; color: #2563eb; background: #eff6ff; border: 1px solid #dbeafe; font-size: 17px; }
[data-theme="light"] .account-name { font-size: 13px; font-weight: 800; line-height: 1.5; }
[data-theme="light"] .account-phone { color: #64748b; font-size: 11px; margin-top: 4px; }
[data-theme="light"] .account-balance { font-size: 32px; font-weight: 800; margin-bottom: 20px; color: #172b4d; line-height: 1.25; font-variant-numeric: tabular-nums; }
[data-theme="light"] .account-balance-currency { font-size: 15px; color: #64748b; font-weight: 600; margin-right: 6px; }
[data-theme="light"] .account-meta { gap: 10px; margin-bottom: 0; padding-top: 16px; border-top: 1px solid #edf1f5; }
[data-theme="light"] .account-meta-row { font-size: 12px; color: #64748b; }
[data-theme="light"] .account-meta-row strong { color: #334155; }
[data-theme="light"] .account-meta-row i { color: #7b8ba3; }
[data-theme="light"] .account-actions { padding: 16px 20px 20px; gap: 8px; background: #fafbfd; border-top: 1px solid #edf1f5; }
[data-theme="light"] .account-actions .btn { border-radius: 10px !important; min-height: 38px; font-size: 11px !important; font-weight: 600; box-shadow: none; }
[data-theme="light"] .account-actions .btn-account-robot { background: #2563eb !important; color: #fff !important; }
[data-theme="light"] .account-actions .btn-account-notification { background: #eff6ff !important; color: #1d4ed8 !important; border: 1px solid #dbeafe !important; box-shadow: none; }
[data-theme="light"] .account-actions .btn-account-notification:hover { background: #dbeafe !important; }
[data-theme="light"] .account-actions .btn-danger { background: transparent !important; color: #be3445 !important; border-color: #f0dce0 !important; }
[data-theme="light"] .account-actions .btn-danger:hover { background: #fff1f2 !important; }
[data-theme="light"] .account-card.has-error { border-color: #f1c9cf !important; }
[data-theme="light"] .account-card.has-error .account-avatar { background: #fff1f2; color: #be3445; border-color: #fecdd3; }
[data-theme="light"] .badge-success { background: #ecfdf5; color: #047857; border-color: #bbf7d0; }
@media (min-width: 992px) {
    [data-theme="light"] .page-dashboard .main-content-area { padding-top: 32px; }
    [data-theme="light"] .sidebar.collapsed .brand-wrapper { padding: 6px 0; background: transparent; border-color: transparent; }
    [data-theme="light"] .sidebar.collapsed .nav-link.active i { color: #2563eb !important; filter: none; }
    [data-theme="light"] .sidebar.collapsed .nav-link.active::after { background: #2563eb; }
}
@media (max-width: 640px) {
    [data-theme="light"] .page-dashboard .accounts-grid { grid-template-columns: 1fr; gap: 16px; }
    [data-theme="light"] .account-card-body { padding: 20px; }
    [data-theme="light"] .account-actions { padding: 16px; }
    [data-theme="light"] .page-head { gap: 12px; margin-bottom: 18px; }
    [data-theme="light"] .page-head-title { font-size: 23px; }
    [data-theme="light"] .toolbar .search-wrap { flex-basis: 100%; min-width: 0; }
    [data-theme="light"] .toolbar-actions { width: 100%; }
    [data-theme="light"] .toolbar-actions .btn { flex: 1; }
}

@media (max-width: 640px) {
    [data-theme="light"] .page-head { flex-direction: row; flex-wrap: nowrap; align-items: center; }
    [data-theme="light"] .page-head-text { flex: 1; min-width: 0; text-align: left; }
    [data-theme="light"] .page-head-stat { width: auto; flex: 0 0 90px; padding: 12px 10px; text-align: center; }
    [data-theme="light"] .page-head-stat-label { font-size: 8px; letter-spacing: .03em; }
    [data-theme="light"] .page-head-sub { font-size: 12px; line-height: 1.6; }
}

/* Clear white surfaces, readable profile actions and an account summary badge. */
html[data-theme="light"] { --theme-bg-page: #f3f6fb; --theme-text-primary: #162b49; --theme-border-color: #dce5f0; }
html[data-theme="light"] .topbar { background: #ffffff; border-bottom-color: #e3eaf4; box-shadow: 0 2px 12px #23426b04; }
html[data-theme="light"] .profile-menu-trigger { border-color: #dbe5f2; background: #ffffff; box-shadow: 0 2px 6px #23426b05; padding: 6px 9px 6px 6px; }
html[data-theme="light"] .profile-menu-trigger:hover,
html[data-theme="light"] .profile-menu[open] .profile-menu-trigger { background: #f8fbff; border-color: #b7cff6; box-shadow: 0 0 0 3px #2563eb0c; }
html[data-theme="light"] .profile-menu .user-name { color: #172d4b; font-family: 'Plus Jakarta Sans',system-ui,sans-serif; font-weight: 800; letter-spacing: 0; }
html[data-theme="light"] .profile-menu .user-role { color: #74839b; font-weight: 500; }
html[data-theme="light"] .profile-menu-caret,
html[data-theme="light"] .profile-menu[open] .profile-menu-caret { color: #617692; background: #edf3fc; }
html[data-theme="light"] .profile-menu-panel { width: 272px; max-width: calc(100vw - 24px); padding: 10px; border: 1px solid #dce6f3; border-radius: 17px; background: #ffffff; box-shadow: 0 18px 50px -16px #1e3b6b40,0 4px 12px #1e3b6b08; }
html[data-theme="light"] .profile-menu-head { gap: 12px; padding: 12px 10px 16px; margin-bottom: 8px; border-bottom: 1px solid #edf1f7; }
html[data-theme="light"] .profile-menu-head strong { color: #172d4b; font-family: 'Plus Jakarta Sans',system-ui,sans-serif; font-size: 13px; font-weight: 800; letter-spacing: 0; }
html[data-theme="light"] .profile-menu-head small { color: #75849a; font-size: 11px; margin-top: 5px; }
html[data-theme="light"] .profile-menu .user-avatar { color: #2563eb; background: linear-gradient(145deg,#f3f7ff,#e9f1ff); border-color: #d9e6fc; box-shadow: inset 0 1px 0 #ffffff; }
html[data-theme="light"] .profile-menu-logout { min-height: 44px; gap: 10px; padding: 12px; border: 1px solid #ffe1e7; border-radius: 11px; color: #be2446 !important; background: #fff3f5; font-weight: 700; }
html[data-theme="light"] .profile-menu-logout:hover { color: #a91739 !important; background: #ffe8ee; border-color: #ffcbd7; }
html[data-theme="light"] .profile-menu-logout i { color: #d03b59; font-size: 16px; }
.page-head-stat-icon { display: none; }
html[data-theme="light"] #dashboard-account-count { position: relative; min-width: 178px; padding: 16px 18px 16px 70px; text-align: left; border: 1px solid #d9e6f8; border-radius: 16px; background: linear-gradient(125deg,#ffffff 20%,#f0f6ff); box-shadow: 0 5px 18px -10px #2c61b82b; }
html[data-theme="light"] .page-head-stat-icon { display: grid; place-items: center; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 1px solid #d8e7fe; border-radius: 12px; background: #eaf2ff; color: #2563eb; font-size: 18px; }
html[data-theme="light"] #dashboard-account-count .page-head-stat-value { color: #1d4ed8; font-size: 27px; font-weight: 800; line-height: 1.05; }
html[data-theme="light"] #dashboard-account-count .page-head-stat-label { margin-top: 6px; color: #69809e; font-size: 9px; font-weight: 700; letter-spacing: .045em; }
html[data-theme="light"] .page-dashboard .toolbar { background: #ffffff; border-color: #e1e9f4 !important; box-shadow: 0 4px 16px -10px #23426b26; }
html[data-theme="light"] .page-dashboard .toolbar .form-input { background: #f6f9fd !important; border-color: #e5edf7 !important; }
html[data-theme="light"] .dashboard-mutasi { border-color: #dce6f2; box-shadow: 0 6px 24px -18px #23426b38; }
html[data-theme="light"] .dashboard-mutasi #mutasi-table.mutasi-data-table thead th { background: #f1f5fc; color: #5d7190; }
html[data-theme="light"] .dashboard-mutasi #mutasi-table.mutasi-data-table tbody .mutasi-data-row td { background: #ffffff !important; }
html[data-theme="light"] .dashboard-mutasi #mutasi-table.mutasi-data-table tbody .mutasi-data-row:nth-child(even) td { background: #f8fafd !important; }
html[data-theme="light"] .dashboard-mutasi #mutasi-table.mutasi-data-table tbody .mutasi-data-row:hover td,
html[data-theme="light"] .dashboard-mutasi #mutasi-table.mutasi-data-table tbody .mutasi-data-row.is-copy-selected td { background: #eef5ff !important; }
@media(max-width:640px) {
    html[data-theme="light"] #dashboard-account-count { min-width: 82px; flex: 0 0 82px; padding: 12px 10px; text-align: center; border-radius: 13px; }
    html[data-theme="light"] .page-head-stat-icon { display: none; }
    html[data-theme="light"] #dashboard-account-count .page-head-stat-value { font-size: 24px; }
    html[data-theme="light"] #dashboard-account-count .page-head-stat-label { margin-top: 4px; font-size: 9px; }
}
