:root {
    --sukeshi-primary: #e93661;
    --sukeshi-primary-dark: #c8234d;
    --sukeshi-primary-light: #f45f80;
    --sukeshi-gold: #f4c75b;
    --sukeshi-gold-dark: #d6a93f;
    --sukeshi-cream: #fff7df;
    --sukeshi-bg: #fff9f5;
    --sukeshi-text: #5f2639;
    --sukeshi-text-soft: #8c5a6b;
    --sukeshi-border: #efd7df;
    --sidebar: #6f1735;
    --sidebar2: #431022;
    --success: #2f8f67;
    --danger: #d9534f;
    --info: #2aa7c9;
    --dark: #34495e;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--sukeshi-bg);
    color: var(--sukeshi-text);
    font-family: Inter,Segoe UI,Arial,sans-serif;
    font-size: 14px;
}

/* =========================================================
   APP SHELL
   ========================================================= */

.app-shell {
    min-height: 100vh;
}

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

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 225px;
    background: linear-gradient( 180deg, var(--sidebar) 0%, #5b1430 55%, var(--sidebar2) 100% );
    padding: 18px 14px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 6px 0 24px rgba(90,20,48,.12);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    padding: 2px 7px 16px;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.brand-logo-wrap {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 14px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3px;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-text {
    min-width: 0;
    line-height: 1.1;
}

    .brand-text strong {
        display: block;
        color: #fff;
        font-size: .93rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .brand-text small {
        display: block;
        margin-top: 4px;
        color: var(--sukeshi-gold);
        font-size: .72rem;
        font-weight: 700;
        letter-spacing: .4px;
    }

.sidebar .nav {
    gap: 2px;
}

.sidebar .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    color: #f8eaf0;
    padding: 10px 11px;
    border-radius: 9px;
    margin: 1px 0;
    font-size: .90rem;
    transition: all .18s ease;
}

    .sidebar .nav-link i {
        width: 24px;
        flex: 0 0 24px;
        color: #ffdfe8;
    }

    .sidebar .nav-link:hover {
        background: rgba(255,255,255,.10);
        color: #fff;
        transform: translateX(2px);
    }

        .sidebar .nav-link:hover i {
            color: var(--sukeshi-gold);
        }

    .sidebar .nav-link.active {
        background: linear-gradient( 90deg, rgba(244,199,91,.22), rgba(255,255,255,.08) );
        color: #fff;
        font-weight: 700;
        border-left: 3px solid var(--sukeshi-gold);
    }

        .sidebar .nav-link.active i {
            color: var(--sukeshi-gold);
        }

.sidebar-bottom {
    margin-top: auto;
    padding: 12px 7px 2px;
}

.sidebar-user-box {
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.10);
}

.sidebar-bottom .btn-outline-light {
    border-color: rgba(255,255,255,.55);
    color: #fff;
}

    .sidebar-bottom .btn-outline-light:hover {
        background: #fff;
        color: var(--sidebar);
    }

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

.main-content {
    margin-left: 225px;
    min-height: 100vh;
    width: calc(100% - 225px);
}

.topbar {
    min-height: 70px;
    background: #fff;
    border-bottom: 1px solid var(--sukeshi-border);
    display: flex;
    align-items: center;
    padding: 10px 22px;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 3px 14px rgba(95,38,57,.04);
}

.topbar-title {
    min-width: 0;
}

.page-title {
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--sukeshi-text);
}

.page-subtitle {
    font-size: .77rem;
    color: var(--sukeshi-text-soft);
}

.topbar-brand-badge {
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    background: var(--sukeshi-cream);
    color: var(--sukeshi-primary-dark);
    border: 1px solid var(--sukeshi-gold);
    font-size: .74rem;
    font-weight: 800;
}

.content-wrap {
    width: 100%;
    max-width: none;
    padding: 22px;
}

    /* =========================================================
   BOOTSTRAP WIDTH FIX
   ========================================================= */

    .content-wrap .container,
    .content-wrap .container-fluid {
        max-width: none !important;
        width: 100% !important;
        padding-left: 0;
        padding-right: 0;
    }

    .content-wrap > .row,
    .content-wrap .dashboard-row {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

        .content-wrap > .row > [class*="col-"],
        .content-wrap .dashboard-row > [class*="col-"] {
            padding-left: 6px;
            padding-right: 6px;
        }

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    border-radius: 8px;
    font-size: .84rem;
}

.btn-sm {
    font-size: .76rem;
}

.btn-primary {
    background: linear-gradient( 135deg, var(--sukeshi-primary), var(--sukeshi-primary-dark) );
    border-color: var(--sukeshi-primary-dark);
    box-shadow: 0 5px 14px rgba(233,54,97,.18);
}

    .btn-primary:hover,
    .btn-primary:focus {
        background: var(--sukeshi-primary-dark);
        border-color: var(--sukeshi-primary-dark);
    }

.btn-outline-primary {
    color: var(--sukeshi-primary-dark);
    border-color: var(--sukeshi-primary);
}

    .btn-outline-primary:hover {
        color: #fff;
        background: var(--sukeshi-primary);
        border-color: var(--sukeshi-primary);
    }

.btn-light {
    background: #fff8fa;
    border-color: #f2dce3;
    color: var(--sukeshi-text);
}

    .btn-light:hover {
        background: var(--sukeshi-cream);
        border-color: var(--sukeshi-gold);
    }

/* =========================================================
   METRIC CARDS
   ========================================================= */

.metric-card,
.panel-card {
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(95,38,57,.065);
}

.metric-card {
    position: relative;
    padding: 15px 16px;
    height: 100%;
    min-height: 125px;
    overflow: hidden;
    border-top: 3px solid rgba(233,54,97,.18);
    transition: transform .18s ease,box-shadow .18s ease;
}

    .metric-card::after {
        content: "";
        position: absolute;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        right: -30px;
        top: -30px;
        background: rgba(244,199,91,.08);
    }

    .metric-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(95,38,57,.10);
    }

.metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    margin-bottom: 12px;
}

.metric-value {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    color: var(--sukeshi-text);
}

.metric-label {
    font-size: .76rem;
    color: var(--sukeshi-text-soft);
}

.metric-icon.bg-primary-subtle {
    background: #fde8ee !important;
    color: var(--sukeshi-primary) !important;
}

.metric-icon.bg-success-subtle {
    background: #e6f4ee !important;
    color: #2f8f67 !important;
}

.metric-icon.bg-info-subtle {
    background: #e4f6fa !important;
    color: #2293b0 !important;
}

.metric-icon.bg-warning-subtle {
    background: #fff3d6 !important;
    color: #b78114 !important;
}

.metric-icon.bg-danger-subtle {
    background: #fdeaea !important;
    color: #c94b4b !important;
}

.metric-icon.bg-dark-subtle {
    background: #eceff3 !important;
    color: #34485c !important;
}

/* =========================================================
   PANEL CARDS
   ========================================================= */

.panel-card {
    width: 100%;
    overflow: hidden;
    border-top: 2px solid rgba(233,54,97,.16);
}

    .panel-card .card-header {
        background: linear-gradient( 90deg, #ffffff, #fff8fa );
        border-bottom: 1px solid var(--sukeshi-border);
        padding: 13px 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-radius: 14px 14px 0 0;
        min-height: 50px;
    }

        .panel-card .card-header strong {
            color: var(--sukeshi-text);
            font-weight: 800;
        }

        .panel-card .card-header i {
            color: var(--sukeshi-primary);
        }

    .panel-card .card-body {
        padding: 14px 15px;
    }

.dashboard-panel {
    height: 100%;
}

    .dashboard-panel .card-body {
        min-height: 140px;
    }

/* =========================================================
   TABLES
   ========================================================= */

.table-responsive {
    width: 100%;
}

.table {
    width: 100%;
    margin-bottom: 0;
}

    .table thead th {
        font-size: .70rem;
        text-transform: uppercase;
        letter-spacing: .035em;
        color: #8c6674;
        background: #fff9fb;
        border-bottom: 1px solid var(--sukeshi-border);
        white-space: nowrap;
        padding: 9px 10px;
    }

    .table td {
        vertical-align: middle;
        padding: 9px 10px;
        font-size: .84rem;
        border-color: #f4e8ec;
    }

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

    .table a {
        color: var(--sukeshi-primary-dark);
    }

        .table a:hover {
            color: var(--sukeshi-primary);
        }

/* =========================================================
   PRIORITY / STATUS
   ========================================================= */

.priority-badge {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 800;
}

.priority-a {
    background: #e7f5ed;
    color: #247451;
}

.priority-b {
    background: #fff3d6;
    color: #8a681f;
}

.priority-c {
    background: #edf1f5;
    color: #566370;
}

.status-pill {
    padding: 5px 9px;
    border-radius: 999px;
    background: #fdebf0;
    color: var(--sukeshi-primary-dark);
    font-size: .72rem;
}

.label {
    font-size: .72rem;
    text-transform: uppercase;
    color: #9a7682;
    margin-bottom: 3px;
}

/* =========================================================
   LIST GROUP
   ========================================================= */

.list-group-item {
    border-color: #f1e1e6;
}

.list-group-item-action {
    color: var(--sukeshi-text);
}

    .list-group-item-action:hover {
        background: #fff8fa;
        color: var(--sukeshi-primary-dark);
    }

.list-group-item .fw-semibold {
    color: var(--sukeshi-text);
}

/* =========================================================
   TIMELINE
   ========================================================= */

.timeline-item {
    border-left: 3px solid #f4c2cf;
    padding: 0 0 14px 13px;
    margin-left: 4px;
}

.timeline-date {
    font-size: .74rem;
    color: var(--sukeshi-text-soft);
}

.timeline-item a {
    color: var(--sukeshi-primary-dark);
}

/* =========================================================
   FORMS
   ========================================================= */

.form-control,
.form-select {
    border-color: #e5d5db;
    border-radius: 9px;
    font-size: .86rem;
    color: var(--sukeshi-text);
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--sukeshi-primary-light);
        box-shadow: 0 0 0 .18rem rgba(233,54,97,.11);
    }

.form-label {
    color: var(--sukeshi-text);
    font-weight: 600;
}

.input-group-text {
    background: #fff8fa;
    border-color: #e5d5db;
    color: var(--sukeshi-primary-dark);
}

/* =========================================================
   BADGES
   ========================================================= */

.badge.text-bg-light {
    background: #fff6f8 !important;
    color: var(--sukeshi-text) !important;
    border: 1px solid #f0dbe2;
}

/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    border: 0;
    border-radius: 12px;
}

.alert-success {
    background: #e9f7ef;
    color: #246c4f;
}

.alert-danger {
    background: #fdecef;
    color: #9b344a;
}

/* =========================================================
   EMPTY STATES
   ========================================================= */

.empty-mini {
    padding: 22px;
    color: #967381;
    text-align: center;
}

.empty-state {
    max-width: 620px;
    margin: 70px auto;
    text-align: center;
    padding: 32px;
}

    .empty-state i {
        font-size: 2.6rem;
        color: #b8929f;
    }

/* =========================================================
   REPORTS
   ========================================================= */

.report-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 2px;
    border-bottom: 1px solid var(--sukeshi-border);
}

/* =========================================================
   LOGIN PAGE
   ========================================================= */

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient( circle at top right, rgba(244,199,91,.22), transparent 30% ), radial-gradient( circle at bottom left, rgba(233,54,97,.10), transparent 34% ), linear-gradient( 135deg, #fff, #fff8fa );
}

.login-card {
    width: min(440px,92vw);
    background: #fff;
    padding: 34px;
    border-radius: 20px;
    border: 1px solid var(--sukeshi-border);
    box-shadow: 0 22px 60px rgba(95,38,57,.13);
}

.login-logo {
    width: 78px;
    height: 78px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    margin: auto;
    background: #fff;
    border: 1px solid var(--sukeshi-border);
    overflow: hidden;
    padding: 5px;
    box-shadow: 0 8px 20px rgba(95,38,57,.10);
}

    .login-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* =========================================================
   LINKS
   ========================================================= */

a {
    color: var(--sukeshi-primary-dark);
}

    a:hover {
        color: var(--sukeshi-primary);
    }

/* =========================================================
   DESKTOP
   ========================================================= */

@media(min-width:1200px) {

    .content-wrap {
        padding: 20px 20px 28px;
    }

    .metric-card {
        min-height: 118px;
        padding: 14px 15px;
    }

    .metric-icon {
        margin-bottom: 10px;
    }

    .dashboard-main-grid {
        display: grid;
        grid-template-columns: minmax(0,1.4fr) minmax(300px,.6fr);
        gap: 14px;
        width: 100%;
        align-items: start;
    }

    .dashboard-half-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        width: 100%;
    }
}

/* =========================================================
   LAPTOP
   ========================================================= */

@media(min-width:992px) and (max-width:1399.98px) {

    .sidebar {
        width: 210px;
    }

    .main-content {
        margin-left: 210px;
        width: calc(100% - 210px);
    }

    .content-wrap {
        padding: 18px;
    }

    .topbar {
        min-height: 66px;
        padding: 8px 18px;
    }

    .metric-card {
        padding: 13px;
        min-height: 112px;
    }

    .metric-value {
        font-size: 1.4rem;
    }

    .metric-icon {
        width: 34px;
        height: 34px;
        margin-bottom: 9px;
    }

    .brand-logo-wrap {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .brand-text strong {
        font-size: .86rem;
    }
}

/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media(max-width:991.98px) {

    .sidebar {
        width: 240px;
        transform: translateX(-100%);
        transition: .25s;
    }

        .sidebar.show {
            transform: translateX(0);
        }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .content-wrap {
        padding: 14px;
    }

    .topbar {
        min-height: 64px;
        padding: 8px 14px;
    }

        .topbar .btn-primary {
            font-size: 0;
            width: 40px;
            height: 40px;
            padding: 0;
            display: grid;
            place-items: center;
        }

            .topbar .btn-primary i {
                font-size: 1rem;
                margin: 0 !important;
            }

    .metric-card {
        min-height: 105px;
        padding: 13px;
    }

    .metric-value {
        font-size: 1.35rem;
    }

    .dashboard-main-grid,
    .dashboard-half-grid {
        display: block;
    }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media(max-width:575.98px) {

    .content-wrap {
        padding: 10px;
    }

    .topbar {
        min-height: 60px;
    }

    .page-title {
        font-size: 1rem;
    }

    .page-subtitle {
        font-size: .7rem;
    }

    .metric-card {
        min-height: 100px;
    }

    .panel-card {
        border-radius: 12px;
    }

        .panel-card .card-header {
            padding: 11px 12px;
        }

        .panel-card .card-body {
            padding: 12px;
        }

    .table td,
    .table thead th {
        padding: 8px;
    }

    .empty-mini {
        padding: 18px 10px;
    }

    .brand-text strong {
        font-size: .85rem;
    }
}
