/*
 * Indoweb Notifwa — light-only application interface.
 * The existing semantic Bootstrap colors are intentionally retained.
 */
:root {
    color-scheme: light;
    --notif-primary: #3461ff;
    --notif-primary-soft: rgba(52, 97, 255, .10);
    --notif-green: #12bf24;
    --notif-ink: #1d2939;
    --notif-muted: #667085;
    --notif-line: #e7ebf3;
    --notif-canvas: #f6f8fc;
    --notif-surface: #ffffff;
}

html.light-theme,
html.light-theme body {
    min-height: 100%;
    background: var(--notif-canvas);
    color: var(--notif-ink);
}

body,
.notifwa-shell,
.notifwa-auth {
    font-family: "Plus Jakarta Sans", Roboto, sans-serif;
    font-size: 13px;
    letter-spacing: 0;
    background: var(--notif-canvas);
}

/* App frame */
.sidebar-wrapper,
html.light-theme .sidebar-wrapper {
    width: 276px;
    background: var(--notif-surface);
    border-right: 1px solid var(--notif-line);
    box-shadow: none;
}

.sidebar-wrapper .sidebar-header,
html.light-theme .sidebar-wrapper .sidebar-header {
    width: 276px;
    height: 78px;
    padding: 0 22px;
    background: var(--notif-surface);
    border-bottom: 1px solid var(--notif-line);
    border-right: 0;
}

.sidebar-wrapper .brand-mark {
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--notif-primary-soft);
}

.sidebar-wrapper .sidebar-header .logo-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.sidebar-wrapper .brand-copy { min-width: 0; }
.sidebar-wrapper .sidebar-header .logo-text {
    margin: 0 0 2px 11px;
    color: var(--notif-ink);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -.35px;
    line-height: 1.2;
}
.sidebar-wrapper .brand-copy span {
    display: block;
    margin-left: 11px;
    color: var(--notif-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.toggle-icon { color: var(--notif-muted); font-size: 21px; }

.sidebar-wrapper .metismenu {
    padding: 18px 14px 24px;
    margin-top: 78px;
}
.sidebar-wrapper .metismenu > li { margin: 0 0 4px !important; }
.sidebar-wrapper .metismenu a {
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    color: #475467;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0;
}
.sidebar-wrapper .metismenu a .parent-icon {
    display: grid;
    width: 26px;
    place-items: center;
    color: #667085;
    font-size: 17px;
}
.sidebar-wrapper .metismenu a .menu-title { margin-left: 9px; }
.sidebar-wrapper .metismenu .mm-active > a,
.sidebar-wrapper .metismenu a:active,
.sidebar-wrapper .metismenu a:focus,
.sidebar-wrapper .metismenu a:hover,
html.light-theme .sidebar-wrapper .metismenu .mm-active > a,
html.light-theme .sidebar-wrapper .metismenu a:active,
html.light-theme .sidebar-wrapper .metismenu a:focus,
html.light-theme .sidebar-wrapper .metismenu a:hover {
    color: var(--notif-primary);
    background: var(--notif-primary-soft);
    border: 0;
    box-shadow: none;
}
.sidebar-wrapper .metismenu .mm-active > a .parent-icon,
.sidebar-wrapper .metismenu a:hover .parent-icon { color: var(--notif-primary); }
.sidebar-wrapper .metismenu ul {
    margin: 3px 0 7px 23px;
    padding: 3px 0 3px 10px;
    border-left: 1px solid var(--notif-line);
}
.sidebar-wrapper .metismenu ul a {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12px;
}
.sidebar-wrapper .metismenu ul a i { color: #98a2b3; font-size: 7px; }
.metismenu .has-arrow:after { right: 17px; width: .42em; height: .42em; }

.top-header .navbar,
html.light-theme .top-header .navbar {
    left: 276px;
    height: 78px;
    padding: 0 30px;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--notif-line);
    box-shadow: none;
    backdrop-filter: blur(14px);
}
.top-header .navbar .searchbar { width: min(340px, 36vw); }
.top-header .navbar .searchbar .form-control,
html.light-theme .top-header .navbar .searchbar .form-control {
    height: 39px;
    padding-left: 2.4rem;
    color: var(--notif-ink);
    background: #f8fafc;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 12px;
}
.top-header .navbar .searchbar .form-control:focus,
html.light-theme .top-header .navbar .searchbar .form-control:focus {
    background: #fff;
    border-color: rgba(52, 97, 255, .45);
    box-shadow: 0 0 0 3px var(--notif-primary-soft);
}
.top-header .navbar .top-navbar-right .nav-link {
    color: #475467;
    font-size: 13px;
    font-weight: 600;
}
.top-header .navbar .user-img {
    width: 36px;
    height: 36px;
    padding: 2px;
    border: 1px solid var(--notif-line);
    background: #fff;
}
.top-header .navbar .dropdown-menu,
.dropdown-user-setting .dropdown-menu {
    padding: 8px;
    border: 1px solid var(--notif-line);
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(16, 24, 40, .12);
}
.top-header .navbar .dropdown-menu::after,
.top-header .navbar .dropdown-user-setting .dropdown-menu::after { display: none; }
.top-header .navbar .dropdown-item { border-radius: 8px; font-size: 12px; }

.page-content {
    min-height: calc(100vh - 78px);
    margin-top: 78px;
    margin-left: 276px;
    padding: 30px;
}
.app-footer {
    margin-left: 276px;
    padding: 0 30px 24px;
    color: var(--notif-muted);
    font-size: 11px;
    font-weight: 600;
}
.app-footer .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 0 0;
    border-top: 1px solid var(--notif-line);
}
.app-footer a { color: var(--notif-primary); }
.wrapper.toggled .top-header .navbar { left: 70px; }
.wrapper.toggled .page-content { margin-left: 70px; }
.wrapper.toggled .app-footer { margin-left: 70px; }

/* Shared content components */
.card {
    border: 1px solid var(--notif-line);
    border-radius: 14px !important;
    background: var(--notif-surface);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .025);
}
.card .card-body { padding: 21px; }
.card-title,
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
    color: var(--notif-ink);
    font-weight: 700;
    letter-spacing: -.3px;
}
.card .card-body > .d-flex.align-items-center:first-child > h5 { font-size: 14px; }
.widget-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: none !important;
}
.font-13 { color: var(--notif-muted); font-size: 11px; }

.btn {
    min-height: 36px;
    padding: .48rem .85rem;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: none !important;
}
.btn-sm { min-height: 30px; padding: .3rem .65rem; font-size: 11px; }
.btn-primary { background: var(--notif-primary); border-color: var(--notif-primary); }
.btn-primary:hover, .btn-primary:focus { background: #2854ee; border-color: #2854ee; }
.btn-outline-primary { color: var(--notif-primary); border-color: rgba(52, 97, 255, .45); }
.btn-outline-primary:hover { background: var(--notif-primary); border-color: var(--notif-primary); }

.form-label { margin-bottom: .45rem; color: #344054; font-size: 12px; font-weight: 700; }
.form-control, .form-select, select.form-control {
    min-height: 39px;
    border: 1px solid #dfe4ed;
    border-radius: 9px;
    color: var(--notif-ink);
    background-color: #fff;
    font-size: 12px;
    box-shadow: none;
}
.form-control:focus, .form-select:focus, select.form-control:focus {
    border-color: rgba(52, 97, 255, .65);
    box-shadow: 0 0 0 3px var(--notif-primary-soft);
}
.form-check-input { width: 2.1em; height: 1.15em; border-color: #cdd5df; box-shadow: none; }
.form-check-input:checked { background-color: var(--notif-primary); border-color: var(--notif-primary); }

.table { --bs-table-bg: transparent; --bs-table-hover-bg: #f8faff; margin-bottom: 0; color: #475467; }
.table > :not(caption) > * > * { padding: .85rem .75rem; border-bottom-color: var(--notif-line); font-size: 12px; vertical-align: middle; }
.table thead th { color: #667085; background: #fafbfc; border-bottom-width: 1px; font-size: 10px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
.table tbody tr:last-child > * { border-bottom: 0; }
.badge { padding: .42em .68em; border-radius: 6px; font-size: 10px; font-weight: 700; letter-spacing: .01em; }
.modal-content { border: 1px solid var(--notif-line); border-radius: 15px; box-shadow: 0 20px 48px rgba(16, 24, 40, .16); }
.modal-header, .modal-footer { border-color: var(--notif-line); padding: 16px 20px; }
.modal-body { padding: 20px; }
.alert { border: 0; border-radius: 10px; font-size: 12px; }

/* Auth screens retain the same actions and colors in a calmer light composition. */
.notifwa-auth.bg-login {
    min-height: 100vh;
    background-color: #f6f8fc;
    background-image: radial-gradient(circle at 10% 5%, rgba(52, 97, 255, .12), transparent 28%), radial-gradient(circle at 95% 92%, rgba(18, 191, 36, .09), transparent 25%);
}
.authentication-content { min-height: 100vh; display: flex; align-items: center; margin-top: 0 !important; }
.authentication-content .card { overflow: visible !important; box-shadow: 0 18px 50px rgba(16, 24, 40, .08) !important; }
.authentication-content .card-body { padding: 38px !important; }
.authentication-content .card-title { font-size: 22px; }
.authentication-content .card-text { color: var(--notif-muted); font-size: 12px; }
.authentication-content .radius-30 { border-radius: 9px; }

@media screen and (min-width: 1025px) {
    .wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper,
    .wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper .sidebar-header { width: 72px; }
    .wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper .metismenu { padding-right: 10px; padding-left: 10px; }
    .wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper .metismenu a { border-radius: 10px; }
    .wrapper.toggled:not(.sidebar-hovered) .sidebar-wrapper .brand-copy { display: none; }
}

@media screen and (max-width: 1024px) {
    .top-header .navbar { left: 0; height: 66px; padding: 0 18px; }
    .page-content { margin-top: 66px; margin-left: 0; padding: 20px; }
    .app-footer { margin-left: 0; padding: 0 20px 20px; }
    .top-header .navbar .mobile-toggle-icon { display: block; }
}

@media screen and (max-width: 575px) {
    .page-content { padding: 14px; }
    .app-footer { padding: 0 14px 16px; }
    .top-header .navbar .searchbar { display: none; }
    .authentication-content .card-body { padding: 26px !important; }
    .card .card-body { padding: 16px; }
}
