/* =========================================================
   GENERAL LIST / NOTIFICATION / COMPLAINT
   ========================================================= */

.stack-list,
.notification-feed,
.complaint-list{
    display:grid;
    gap:0;
}

.stack-item,
.notification-row,
.complaint-item{
    padding:14px 0;
    border-bottom:1px solid #e5e7eb;
}

.stack-item:first-child,
.notification-row:first-child,
.complaint-item:first-child{
    padding-top:0;
}

.stack-item:last-child,
.notification-row:last-child,
.complaint-item:last-child{
    border-bottom:0;
    padding-bottom:0;
}


/* Notice dot */

.stack-item .notice-dot{
    display:inline-block;
    vertical-align:middle;
    margin:0;

    width:7px;
    height:7px;

    border-radius:50%;

    background:#16a34a;
}


/* Empty state */

.empty-state{
    text-align:center;
    padding:34px 15px;
    color:#64748b;
}

.empty-state i{
    display:block;
    margin-bottom:10px;

    color:#94a3b8;

    font-size:30px;
}

.empty-state h6{
    color:#334155;
    font-weight:700;
}

.empty-state p{
    margin:0;
    font-size:12px;
    color:#64748b;
}


/* Notification */

.notification-row{
    display:flex;
    gap:12px;
}

.notification-row.is-unread{
    margin:0 -8px;

    padding-left:10px;
    padding-right:10px;

    border-radius:9px;

    background:#f0fdf4;

    border-bottom-color:#dcfce7;
}

.notification-icon{
    display:grid;
    place-items:center;

    width:34px;
    height:34px;

    flex:0 0 34px;

    border-radius:9px;

    color:#15803d;

    background:#dcfce7;
}

.notification-row h6{
    font-size:14px;
    color:#1e293b;
    font-weight:700;
}

.notification-row p{
    font-size:13px;
    line-height:1.6;
    color:#64748b;
}


/* Complaint */

.complaint-item p{
    color:#475569;
    font-size:13px;
    line-height:1.65;
}


/* Admin reply */

.admin-reply{
    padding:10px 12px;

    border-left:3px solid #16a34a;

    border-radius:0 9px 9px 0;

    background:#f0fdf4;

    color:#475569;

    font-size:13px;

    line-height:1.6;
}

.admin-reply small{
    display:block;

    margin-bottom:3px;

    color:#15803d;

    font-weight:800;
}


/* =========================================================
   WHITE SIDEBAR + MODERN COMPACT THEME
   ========================================================= */

.sidebar{
    background:#ffffff !important;

    color:#334155 !important;

    border-right:1px solid #e2e8f0 !important;

    box-shadow:
        6px 0 24px rgba(15,23,42,.06) !important;
}


/* =========================================================
   BRAND BOX
   ========================================================= */

.brandbox{
    background:#ffffff !important;

    border-bottom:1px solid #e5e7eb !important;

    padding:18px 16px 15px !important;

    text-align:center;
}

.brandbox img{
    max-width:115px;
    max-height:42px;

    object-fit:contain;
}

.brandname{
    color:#111827 !important;

    font-size:16px !important;

    font-weight:800 !important;
}

.wallet{
    color:#15803d !important;

    font-size:13px !important;

    font-weight:800 !important;

    margin-top:4px;
}

.brandbox .small{
    color:#64748b !important;

    font-weight:600;
}

.brandbox .text-success{
    color:#16a34a !important;
}

.brandbox .text-danger{
    color:#dc2626 !important;
}


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

.nav{
    padding:10px 10px 20px !important;
}

.nav a{
    display:flex;

    align-items:center;

    gap:8px;

    color:#475569 !important;

    background:#ffffff !important;

    border:1px solid transparent !important;

    border-radius:9px !important;

    padding:10px 12px !important;

    margin:3px 0 !important;

    font-size:13px !important;

    font-weight:700 !important;

    text-decoration:none;

    transition:
        background .18s ease,
        color .18s ease,
        border-color .18s ease,
        transform .18s ease,
        box-shadow .18s ease !important;
}


/* Sidebar icons */

.nav a i{
    color:#64748b !important;

    width:22px !important;

    min-width:22px !important;

    text-align:center;

    font-size:14px;
}


/* Sidebar hover */

.nav a:hover{
    color:#15803d !important;

    background:#f0fdf4 !important;

    border-color:#dcfce7 !important;

    transform:translateX(2px) !important;
}

.nav a:hover i{
    color:#16a34a !important;
}


/* Active menu */

.nav a.active{
    color:#15803d !important;

    background:#ecfdf3 !important;

    border-color:#bbf7d0 !important;

    box-shadow:
        inset 3px 0 0 #16a34a,
        0 3px 10px rgba(22,163,74,.06) !important;

    transform:none !important;
}

.nav a.active i{
    color:#16a34a !important;
}


/* =========================================================
   LOGOUT
   ========================================================= */

.nav a[href*="logout"]{
    color:#dc2626 !important;

    margin-top:10px !important;
}

.nav a[href*="logout"] i{
    color:#dc2626 !important;
}

.nav a[href*="logout"]:hover{
    color:#b91c1c !important;

    background:#fef2f2 !important;

    border-color:#fecaca !important;

    transform:translateX(2px) !important;
}


/* =========================================================
   NOTIFICATION COUNT
   ========================================================= */

.nav-count{
    margin-left:auto;

    display:inline-flex;

    align-items:center;

    justify-content:center;

    min-width:20px !important;

    height:20px !important;

    padding:0 6px;

    border-radius:999px;

    background:#dc2626 !important;

    color:#ffffff !important;

    font-size:10px;

    font-weight:800;

    line-height:1;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.main{
    padding:18px !important;

    background:#f4f7fb;
}


/* =========================================================
   TOP HEADER
   ========================================================= */

.top{
    background:#ffffff !important;

    border:1px solid #e2e8f0 !important;

    border-radius:13px !important;

    padding:15px 18px !important;

    margin-bottom:14px !important;

    box-shadow:
        0 4px 16px rgba(15,23,42,.045) !important;
}

.top h3{
    color:#172033 !important;

    font-size:19px !important;

    font-weight:800 !important;
}

.top small{
    color:#64748b !important;
}


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

.cardx{
    background:#ffffff !important;

    border:1px solid #e2e8f0 !important;

    border-radius:13px !important;

    padding:16px !important;

    margin-bottom:14px !important;

    box-shadow:
        0 4px 16px rgba(15,23,42,.045) !important;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.cardx:hover{
    border-color:#bbf7d0 !important;

    box-shadow:
        0 7px 20px rgba(15,23,42,.06) !important;
}


/* =========================================================
   DASHBOARD COMPACT BOXES
   ========================================================= */

.dashboard-small .cardx{
    padding:13px !important;

    border-radius:11px !important;
}

.dashboard-small .metric-card{
    min-height:118px !important;
}

.dashboard-small .metric-icon{
    width:32px !important;

    height:32px !important;

    border-radius:8px !important;

    margin-bottom:5px !important;

    background:#ecfdf5 !important;

    color:#16a34a !important;
}

.dashboard-small .kpi{
    font-size:21px !important;

    color:#172033 !important;
}

.dashboard-small .plan-summary,
.dashboard-small .notice-card{
    min-height:108px !important;
}

.dashboard-small .welcome-banner{
    padding:14px 17px !important;

    border-radius:12px !important;

    margin-bottom:10px !important;

    background:
        linear-gradient(
            135deg,
            #ecfdf5,
            #eff6ff
        ) !important;

    border:1px solid #dbeafe !important;
}

.dashboard-small .welcome-banner h2{
    font-size:19px !important;

    color:#172033 !important;
}

.dashboard-small .welcome-banner p{
    font-size:11px !important;

    color:#64748b !important;
}

.dashboard-small .quick-grid a{
    padding:10px !important;

    border-radius:9px !important;

    font-size:12px !important;

    background:#ffffff !important;

    border:1px solid #e2e8f0 !important;

    color:#475569 !important;

    transition:.2s;
}

.dashboard-small .quick-grid a:hover{
    background:#f0fdf4 !important;

    color:#15803d !important;

    border-color:#bbf7d0 !important;
}


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

/* Default */

.btn{
    border-radius:8px !important;

    font-weight:700;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

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


/* GREEN */

.btn-green{
    background:
        linear-gradient(
            135deg,
            #16a34a,
            #0f7a36
        ) !important;

    border:0 !important;

    color:#ffffff !important;

    box-shadow:
        0 5px 14px rgba(22,163,74,.16);
}

.btn-green:hover{
    background:
        linear-gradient(
            135deg,
            #15803d,
            #166534
        ) !important;

    color:#ffffff !important;

    box-shadow:
        0 7px 18px rgba(22,163,74,.22);
}


/* PRIMARY BLUE */

.btn-primary{
    background:#2563eb !important;

    border-color:#2563eb !important;

    color:#ffffff !important;
}

.btn-primary:hover{
    background:#1d4ed8 !important;

    border-color:#1d4ed8 !important;

    color:#ffffff !important;
}


/* SUCCESS */

.btn-success{
    background:#16a34a !important;

    border-color:#16a34a !important;

    color:#ffffff !important;
}

.btn-success:hover{
    background:#15803d !important;

    border-color:#15803d !important;
}


/* DANGER */

.btn-danger{
    background:#dc2626 !important;

    border-color:#dc2626 !important;

    color:#ffffff !important;
}

.btn-danger:hover{
    background:#b91c1c !important;

    border-color:#b91c1c !important;
}


/* WARNING */

.btn-warning{
    background:#f59e0b !important;

    border-color:#f59e0b !important;

    color:#ffffff !important;
}

.btn-warning:hover{
    background:#d97706 !important;

    border-color:#d97706 !important;
}


/* INFO */

.btn-info{
    background:#0891b2 !important;

    border-color:#0891b2 !important;

    color:#ffffff !important;
}

.btn-info:hover{
    background:#0e7490 !important;

    border-color:#0e7490 !important;
}


/* SECONDARY */

.btn-secondary{
    background:#64748b !important;

    border-color:#64748b !important;

    color:#ffffff !important;
}

.btn-secondary:hover{
    background:#475569 !important;

    border-color:#475569 !important;
}


/* OUTLINE GREEN */

.btn-outline-success{
    color:#15803d !important;

    border-color:#86efac !important;

    background:#ffffff !important;
}

.btn-outline-success:hover{
    color:#ffffff !important;

    background:#16a34a !important;

    border-color:#16a34a !important;
}


/* OUTLINE PRIMARY */

.btn-outline-primary{
    color:#2563eb !important;

    border-color:#93c5fd !important;

    background:#ffffff !important;
}

.btn-outline-primary:hover{
    color:#ffffff !important;

    background:#2563eb !important;

    border-color:#2563eb !important;
}


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

.table{
    font-size:13px;

    color:#334155;
}

.table thead th{
    background:#f8fafc !important;

    color:#475569 !important;

    border-bottom:1px solid #e2e8f0 !important;

    font-size:12px;

    font-weight:800;

    white-space:nowrap;
}

.table tbody td{
    color:#334155;

    vertical-align:middle;
}

.table-hover tbody tr:hover{
    background:#f0fdf4 !important;
}


/* =========================================================
   FORM CONTROLS
   ========================================================= */

.form-control,
.form-select{
    border-radius:8px !important;

    border:1px solid #dbe3ea !important;

    background:#ffffff !important;

    color:#172033 !important;
}

.form-control::placeholder{
    color:#94a3b8 !important;
}

.form-control:focus,
.form-select:focus{
    border-color:#65b98a !important;

    box-shadow:
        0 0 0 .2rem rgba(22,163,74,.10) !important;
}


/* =========================================================
   INPUT GROUP
   ========================================================= */

.input-group-text{
    background:#f8fafc !important;

    border-color:#dbe3ea !important;

    color:#64748b !important;

    font-weight:600;
}


/* =========================================================
   STATUS COLORS
   ========================================================= */

.status-pill{
    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:5px 10px;

    border-radius:999px;

    font-size:11px;

    font-weight:800;
}

.status-pill.pending{
    background:#fef3c7;

    color:#92400e;

    border:1px solid #fde68a;
}

.status-pill.resolved,
.status-pill.success{
    background:#dcfce7;

    color:#166534;

    border:1px solid #bbf7d0;
}

.status-pill.rejected{
    background:#fee2e2;

    color:#991b1b;

    border:1px solid #fecaca;
}


/* =========================================================
   MODAL / POPUP
   ========================================================= */

.modal-overlay{
    background:rgba(15,23,42,.55) !important;
}

.modal-card{
    background:#ffffff;

    border:1px solid #e2e8f0;

    border-radius:15px;
}

.modal-head{
    background:
        linear-gradient(
            135deg,
            #ecfdf5,
            #eff6ff
        ) !important;

    color:#166534 !important;

    border-bottom:1px solid #dcfce7;
}


/* =========================================================
   DROP / UPLOAD BOX
   ========================================================= */

.drop{
    border:2px dashed #86efac !important;

    border-radius:13px !important;

    padding:28px !important;

    text-align:center;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f0fdf4
        ) !important;

    color:#475569;

    transition:.2s;
}

.drop:hover{
    border-color:#16a34a !important;

    background:#ecfdf5 !important;

    transform:translateY(-1px);
}


/* =========================================================
   PLAN SUMMARY
   ========================================================= */

.plan-summary{
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f0fdf4
        ) !important;

    border:1px solid #dcfce7 !important;
}


/* =========================================================
   TEXT COLORS
   ========================================================= */

.text-success{
    color:#16a34a !important;
}

.text-primary{
    color:#2563eb !important;
}

.text-danger{
    color:#dc2626 !important;
}

.text-warning{
    color:#d97706 !important;
}

.text-info{
    color:#0891b2 !important;
}


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

@media(max-width:760px){

    .sidebar{
        width:270px !important;

        background:#ffffff !important;

        box-shadow:
            8px 0 30px rgba(15,23,42,.12) !important;
    }

    .main{
        padding:12px !important;
    }

    .nav{
        padding:10px 9px 25px !important;
    }

    .nav a{
        padding:11px 12px !important;

        font-size:13px !important;
    }

    .cardx{
        padding:14px !important;

        border-radius:11px !important;
    }

    .top{
        padding:13px 15px !important;

        border-radius:11px !important;
    }

}


/* =========================================================
   SELECTION
   ========================================================= */

::selection{
    background:#bbf7d0;

    color:#14532d;
}