* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: #F5F6F8 !important;
    /* light grey */
    color: #374151;
    font-size: 14px;
}

/* ── SIDEBAR (UPDATED DESIGN) ── */
#sidebar {
    position: fixed;
    top: 16px;
    left: 16px;
    bottom: 16px;
    width: 240px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
    display: flex;
    flex-direction: column;
    z-index: 300;
    overflow: hidden;
}

/* Logo */
.sidebar-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 18px 14px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: #F97316;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.logo-name {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
}

.logo-sub {
    font-size: 12px;
    color: #9CA3AF;
}

/* Collapse */
.collapse-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #9CA3AF;
    font-size: 16px;
    cursor: pointer;
}

/* Section label */
.sidebar-section-label {
    font-size: 12px;
    font-weight: 600;
    color: #9CA3AF;
    padding: 18px 18px 6px;
}

/* Nav */
.snav {
    list-style: none;
    padding: 0 12px;
    margin: 0;
}

.snav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    text-decoration: none;
    transition: all .15s;
}

.snav li a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Hover */
.snav li a:hover {
    background: #F5F6F8;
    color: #111827;
}

/* Active */
.snav li a.active {
    background: linear-gradient(135deg, #111827, #000);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

.snav li a.active i {
    color: #fff;
}

/* Support section */
.sidebar-support {
    margin-top: auto;
    padding-bottom: 12px;
}

.sidebar-support-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: #9CA3AF;
    padding: 18px 18px 6px;
}

.sidebar-support-label i {
    font-size: 15px;
    cursor: pointer;
}

/* Responsive */
@media(max-width:991px) {
    #sidebar {
        transform: translateX(-260px);
        transition: transform .25s;
    }

    #sidebar.open {
        transform: translateX(0);
    }
}

/* ── TOPBAR (NEW DESIGN) ── */
#topbar {
    position: fixed;
    top: 16px;
    left: 288px;
    right: 16px;
    height: 64px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
    display: flex;
    align-items: center;
    padding: 0 18px;
    gap: 14px;
    z-index: 200;
}

/* Search */
/* Topbar search - border only */
.search-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    /* no fill */
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 10px 14px;
    width: 280px;
}

.search-wrap:focus-within {
    border-color: #D1D5DB;
}

.search-wrap i {
    color: #9CA3AF;
    font-size: 15px;
}

.search-wrap input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #111827;
}

.kbd-b {
    font-size: 11px;
    background: #fff;
    color: #9CA3AF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 2px 6px;
    font-family: monospace;
}

/* Right side */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

/* Topbar icons - border only */
.tb-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff;
    /* removed fill */
    border: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #374151;
    cursor: pointer;
    transition: all .15s ease;
}

.tb-icon:hover {
    border-color: #D1D5DB;
    color: #111827;
}

/* Notification dot */
.notif-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    background: #F97316;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* Avatar */
.avatar-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    border: 1px solid #E5E7EB;
    background: #fff;
    /* no fill */
    cursor: pointer;
    transition: border-color .15s;
}

.avatar-pill:hover {
    border-color: #D1D5DB;
}

.avatar-img-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #F97316, #EF4444);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.avatar-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

/* Responsive */
@media(max-width:991px) {
    #topbar {
        left: 16px;
    }
}

/* TOPBAR ENDS */


/* ── MAIN ── */
#main {
    margin-left: 288px;
    padding-top: 96px;
    padding-right: 16px;
    min-height: 100vh;
}

.content {
    background: #fff;
    border-radius: 18px;
    padding: 28px 28px 48px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .03);
}

/* Greeting */
.greeting-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 12px;
}

.greeting-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.greeting-date {
    font-size: 13px;
    color: #9CA3AF;
    margin-top: 2px;
}

.btn-new-project {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #F97316;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    text-decoration: none;
}

.btn-new-project:hover {
    background: #ea6c0c;
    color: #fff;
}

.btn-new-task {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    color: #374151;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
}

.btn-new-task:hover {
    border-color: #D1D5DB;
    color: #111827;
}

/* Stat Cards */
.stat-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 18px 20px 16px;
    transition: box-shadow .2s, transform .2s;
    height: 100%;
}

.stat-card:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
    transform: none
}

.sc-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sc-icon {
    font-size: 16px;
    color: #F97316;
}

.sc-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

.sc-value {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    display: inline;
}

.badge-up {
    display: inline;
    font-size: 12.5px;
    font-weight: 600;
    color: #16A34A;
}

.badge-down {
    display: inline;
    font-size: 12.5px;
    font-weight: 600;
    color: #DC2626;
}

.sc-sub {
    font-size: 12px;
    color: #9CA3AF;
    margin-top: 6px;
}

/* Chart card */
.chart-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 18px 20px;
}

.insight-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 18px 18px;
    height: 100%;
}

.card-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #111827;
}

.amount-big {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    display: inline;
}

.period-drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #E5E7EB;
    border-radius: 7px;
    padding: 5px 10px;
    font-size: 12.5px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s;
}

.period-drop-btn:hover {
    border-color: #D1D5DB;
}

/* Mini bar insight */
.mini-bars-row {
    display: flex;
    gap: 14px;
    margin-bottom: 8px;
}

.mbc {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mbc-pct {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.bars-flex {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 44px;
}

.bs {
    width: 7px;
    border-radius: 2px 2px 0 0;
}

.insight-note {
    font-size: 11.5px;
    color: #9CA3AF;
    margin-bottom: 14px;
}

.leg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid #F3F4F6;
}

.leg-row:last-child {
    border-bottom: none;
}

.leg-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    flex-shrink: 0;
}

.leg-label {
    font-size: 13px;
    color: #374151;
    display: flex;
    align-items: center;
}

.leg-val {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

/* Table */
.table-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 18px 20px;
}

.tbl {
    width: 100%;
    border-collapse: collapse;
}

.tbl thead th {
    font-size: 11px;
    font-weight: 600;
    color: #9CA3AF;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 8px 12px;
    border-bottom: 1px solid #E5E7EB;
    white-space: nowrap;
}

.tbl thead th .si {
    font-size: 9px;
    color: #D1D5DB;
    margin-left: 2px;
}

.tbl tbody td {
    padding: 13px 12px;
    border-bottom: 1px solid #F3F4F6;
    font-size: 13px;
    color: #374151;
    vertical-align: middle;
    white-space: nowrap;
}

.tbl tbody tr:last-child td {
    border-bottom: none;
}

.tbl tbody tr:hover td {
    background: #FFFBF7;
}

.tbl-chk {
    accent-color: #F97316;
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.tpl-name {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
}

.sf {
    color: #FBBF24;
}

.se {
    color: #E5E7EB;
}

.rnum {
    font-weight: 600;
    color: #111827;
    margin-left: 3px;
}

.dots-btn {
    color: #9CA3AF;
    cursor: pointer;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 5px;
    display: inline-block;
}

.dots-btn:hover {
    background: #F3F4F6;
    color: #374151;
}

.sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #E5E7EB;
    border-radius: 7px;
    padding: 5px 10px;
    font-size: 12.5px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s;
}

.sort-btn:hover {
    border-color: #D1D5DB;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #E5E7EB;
    border-radius: 7px;
    padding: 5px 10px;
    font-size: 12.5px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s;
}

.filter-btn:hover {
    border-color: #D1D5DB;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fu {
    animation: fadeUp .32s ease both;
}

.d1 {
    animation-delay: .04s;
}

.d2 {
    animation-delay: .08s;
}

.d3 {
    animation-delay: .12s;
}

.d4 {
    animation-delay: .16s;
}

.d5 {
    animation-delay: .20s;
}

.d6 {
    animation-delay: .24s;
}

/* Responsive */
#overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .3);
    z-index: 299;
}

#overlay.show {
    display: block;
}

.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #E5E7EB;
    border-radius: 7px;
    cursor: pointer;
    font-size: 17px;
    color: #374151;
    background: #fff;
}

@media(max-width:991px) {
    #sidebar {
        transform: translateX(-240px);
        transition: transform .25s;
    }

    #sidebar.open {
        transform: translateX(0);
    }

    #topbar {
        left: 16px;
    }

    #main {
        margin-left: 0;
        padding: 88px 16px 0;
    }

    .hamburger {
        display: flex !important;
    }

    .content {
        border-radius: 14px;
        padding: 20px 16px 40px;
    }
}

@media(max-width:575px) {
    .content {
        padding: 16px 12px 40px;
    }

    .greeting-title {
        font-size: 19px;
    }

    .sc-value {
        font-size: 22px;
    }
}


/* ── Deployment Overview (Structured) ── */
.deploy-card {
    background: #fff;
    border: 1px solid #EEF0F3;
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .03);
    margin-bottom: 22px;
}

/* Header */
.deploy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.deploy-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

/* List group overrides */
.deploy-list {
    border-radius: 12px;
    overflow: hidden;
}

.deploy-row {
    border: 0;
    border-top: 1px solid #F1F3F5;
    padding: 16px 18px;
}

.deploy-row:first-child {
    border-top: none;
}

/* Labels & values */
.deploy-label {
    font-size: 11px;
    font-weight: 600;
    color: #9CA3AF;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.deploy-value {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-top: 2px;
}

.deploy-value.muted {
    color: #9CA3AF;
}

.deploy-link {
    font-size: 14px;
    font-weight: 500;
    color: #2563EB;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.deploy-link:hover {
    text-decoration: underline;
}

/* ── Deployment Info Cards ── */
.deploy-cards {
    margin-bottom: 24px;
}

/* Card */
.info-card {
    background: #fff;
    border: 1px solid #EEF0F3;
    border-radius: 14px;
    padding: 16px 18px;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .02);
    transition: border-color .15s, box-shadow .15s;
}

.info-card:hover {
    border-color: #E5E7EB;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .04);
}

/* Label */
.info-label {
    font-size: 11px;
    font-weight: 600;
    color: #9CA3AF;
    letter-spacing: .05em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* Value */
.info-value {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
}

/* Links */
.info-link {
    font-size: 15px;
    font-weight: 600;
    color: #2563EB;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.info-link:hover {
    text-decoration: underline;
}

/* Muted state */
.info-card.muted .info-value {
    color: #9CA3AF;
}


/* FORM COMPONENT */
/* ── Form Card ── */
.form-card {
    background: #fff;
    border: 1px solid #EEF0F3;
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .03);
    margin-bottom: 24px;
}

.form-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

/* Labels */
.form-label {
    font-size: 12px;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 6px;
}

/* Inputs */
.evk-input {
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    font-size: 14px;
    padding: 10px 12px;
    box-shadow: none;
}

.evk-input:focus {
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .12);
}

/* Dropdown select */
.evk-select {
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    padding: 10px 12px;
    font-size: 14px;
    background: #fff;
}

.evk-select:focus {
    border-color: #F97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .12);
}

/* Dropdown menu */
.dropdown-menu {
    border-radius: 12px;
    border: 1px solid #EEF0F3;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    padding: 6px;
}

.dropdown-item {
    border-radius: 8px;
    font-size: 14px;
    padding: 8px 10px;
}

.dropdown-item:hover {
    background: #FFF7ED;
    color: #111827;
}

/* Toggle */
.form-check-input {
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #F97316;
    border-color: #F97316;
}

/* Gradient Button */
.gradient-btn {
    border: none;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #F97316, #EA580C);
    box-shadow: 0 6px 18px rgba(249, 115, 22, .35);
    transition: all .2s ease;
}

.gradient-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(249, 115, 22, .45);
    background: linear-gradient(135deg, #EA580C, #C2410C);
}