html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


:root {
    --sb-bg-top: #12161f;
    --sb-bg-bot: #1a2030;
    --sb-border: #262e42;
    --sb-text: #aab2c5;
    --sb-text-dim: #6b7284;
    --accent: #5dd5e8;
    --accent-soft: #5db7e8;
    /*--sb-width: 200px;*/
    --sb-width: clamp(190px, 18vw, 220px);
    --sb-width-collapsed: 60px;
    --content-bg: #f4f5f8;
    --font-display: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    --font-body: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    --ink: #14151a;
    --ink-soft: #6b6f7a;
    --line: #e7e8ec;
    --paper: #ffffff;
    --accent1: #ff5470;
    --accent2: #7c5cff;
    --accent3: #2fb5ff;
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--content-bg);
    margin: 0;
    color: #1f2430;
}
.screen {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    min-height: 100vh;
    padding: 18px;
    gap: 18px;
}


/*----------- Login Page Styles -----------*/

/* ---------- LEFT: image slideshow ---------- */
.panel-visual {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #1b1c22;
    min-height: 320px;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.1s ease;
}

    .slide.is-active {
        opacity: 1;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .slide::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.65) 100%);
    }

.visual-topbar {
    position: absolute;
    top: 22px;
    left: 22px;
    right: 22px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 5;
}

.quote-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255,255,255,.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ink);
}

.site-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(20,21,26,.55);
    color: #fff;
    font-size: .78rem;
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(6px);
}

.visual-bottom {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 5;
    color: #fff;
}

    .visual-bottom .quote {
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 1.15rem;
        line-height: 1.4;
        margin: 0 0 14px;
        max-width: 34ch;
    }

    .visual-bottom .who {
        font-size: .85rem;
        color: rgba(255,255,255,.75);
        margin: 0 0 18px;
    }

        .visual-bottom .who b {
            color: #fff;
            font-weight: 600;
        }

.progress-track {
    display: flex;
    gap: 6px;
}

.progress-seg {
    flex: 1;
    height: 3px;
    border-radius: 3px;
    background: rgba(255,255,255,.28);
    overflow: hidden;
}

    .progress-seg span {
        display: block;
        height: 100%;
        width: 0%;
        background: linear-gradient(90deg,var(--accent1),var(--accent2),var(--accent3));
        transition: width linear;
    }

    .progress-seg.done span {
        width: 100%;
        transition: none;
    }

/* ---------- RIGHT: form ---------- */
.panel-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.form-inner {
    width: 100%;
    max-width: 380px;
}

.form-logo {
    display: block;
    height: 96px;
    width: auto;
    margin: 0 auto 30px;
}

.form-inner h1 {
    text-align: center;
}

.form-inner h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.1rem;
    letter-spacing: -.01em;
    margin: 0 0 30px;
}

.field {
    margin-bottom: 14px;
}

    .field label {
        display: block;
        font-size: .8rem;
        font-weight: 600;
        color: var(--ink-soft);
        margin-bottom: 6px;
    }

    .field .input-wrap {
        position: relative;
    }

    .field input {
        width: 100%;
        padding: 13px 14px;
        border: 1px solid var(--line);
        border-radius: 12px;
        font-size: .94rem;
        font-family: var(--font-body);
        color: var(--ink);
        background: #fff;
        outline: none;
        transition: border-color .15s ease, box-shadow .15s ease;
    }

        .field input::placeholder {
            color: #a6aab3;
        }

        .field input:focus {
            border-color: var(--ink);
            box-shadow: 0 0 0 3px rgba(20,21,26,.06);
        }

.eye-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #a6aab3;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color .15s ease;
}

    .eye-toggle:hover {
        color: var(--ink);
    }

    .eye-toggle svg {
        width: 19px;
        height: 19px;
    }

.submit-btn {
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    border: none;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: opacity .15s ease, transform .1s ease;
}

    .submit-btn:hover {
        opacity: .88;
    }

    .submit-btn:active {
        transform: scale(.99);
    }

/* ---------- RESPONSIVE ---------- */
@media (max-width:860px) {
    .screen {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 0;
    }

    .panel-visual {
        display: none;
    }

    .panel-form {
        min-height: 100vh;
        padding: 32px 20px;
    }
}

@media (min-width:861px) and (max-width:1080px) {
    .form-inner h1 {
        font-size: 1.8rem;
    }
}


/* ---------- SIDEBAR ---------- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sb-width);
    background: white;
    border-right: 1px solid var(--sb-border);
    display: flex;
    flex-direction: column;
    z-index: 1040;
    transition: width .28s cubic-bezier(.4,0,.2,1), transform .28s cubic-bezier(.4,0,.2,1);
    overflow: visible;
    border-radius: 0px 10px 10px 0;
}

    .sidebar.collapsed {
        width: 68px;
    }

/* brand / logo */
.sb-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px;
    min-height: 76px;
    white-space: nowrap;
    overflow: hidden;
    justify-content: center;
}

    .sb-brand img.logo {
        width: 95px;
        height: 60px;
        object-fit: cover;
        flex-shrink: 0;
    }

.sidebar.collapsed .sb-brand {
    justify-content: flex-start;
    padding-left: 12px;
    height: 75px;
}

    .sidebar.collapsed .sb-brand .logo {
        width: 40px;
        height: 40px;
    }

.sb-divider {
    border: none;
    height: 2px;
    margin: 0 3px 14px;
    background: linear-gradient(90deg, transparent, var(--sb-border) 15%, var(--sb-border) 85%, transparent);
    flex-shrink: 0;
}

/* nav */
.sb-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 14px 14px;
}

    .sb-nav::-webkit-scrollbar {
        width: 5px;
    }

    .sb-nav::-webkit-scrollbar-thumb {
        background: var(--sb-border);
        border-radius: 10px;
    }

.sb-section-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--sb-text-dim);
    font-weight: 700;
    padding: 16px 12px 8px;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity .15s ease;
}

.sidebar.collapsed .sb-section-label {
    opacity: 0;
    height: 0;
    padding: 8px 0 0;
}

.sb-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 12px;
    margin-bottom: 3px;
    border-radius: 10px;
    /*color: var(--sb-text);*/
    color: black;
    text-decoration: none;
    font-weight: 600;
    font-size: .905rem;
    white-space: nowrap;
    overflow: hidden;
    transition: background .16s ease, color .16s ease;
}

    .sb-link i.bi {
        font-size: 1.15rem;
        width: 22px;
        text-align: center;
        flex-shrink: 0;
        color: var(--sb-text-dim);
        transition: color .16s ease;
    }

    .sb-link .label {
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sb-link .chevron {
        font-size: .72rem;
        transition: transform .2s ease;
        color: var(--sb-text-dim);
    }

    .sb-link:hover {
        background: #20263a;
        color: #fff;
    }

        .sb-link:hover i.bi {
            color: #fff;
        }

    .sb-link.active {
        background: var(--accent-soft);
        color: black;
    }

        .sb-link.active i.bi {
            color: #fff;
        }

        .sb-link.active::before {
            content: "";
            position: absolute;
            left: -14px;
            top: 8px;
            bottom: 8px;
            width: 4px;
            border-radius: 0 4px 4px 0;
            background: var(--accent);
        }

.sb-badge {
    font-size: .66rem;
    font-weight: 700;
    background: var(--accent);
    color: #1a1200;
    padding: 1px 7px;
    border-radius: 20px;
    flex-shrink: 0;
}

/* submenu */
.sb-submenu {
    padding-left: 14px;
    border-left: 1px solid var(--sb-border);
    margin: 2px 0 6px 32px;
}

    .sb-submenu .sb-link {
        font-size: .86rem;
        padding: 8px 10px;
        font-weight: 500;
    }

.sb-link[aria-expanded="true"] .chevron {
    transform: rotate(90deg);
}

/* collapsed state: hide labels/section text, center icons, tooltips */
.sidebar.collapsed .sb-link .label,
.sidebar.collapsed .sb-link .chevron,
.sidebar.collapsed .sb-link .sb-badge,
.sidebar.collapsed .sb-submenu {
    display: none;
}

.sidebar.collapsed .sb-link {
    justify-content: center;
}

.sidebar.collapsed .sb-brand {
    justify-content: center;
    padding: 22px 0;
}

/* footer / user */
.sb-footer {
    border-top: 1px solid var(--sb-border);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

    .sb-footer .avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--accent);
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        color: #1a1200;
        font-family: var(--font-display);
        flex-shrink: 0;
    }

    .sb-footer .who {
        overflow: hidden;
        white-space: nowrap;
    }

        .sb-footer .who .name {
            color: #fff;
            font-size: .85rem;
            font-weight: 700;
        }

        .sb-footer .who .role {
            color: var(--sb-text-dim);
            font-size: .72rem;
        }

.sidebar.collapsed .sb-footer .who {
    display: none;
}

.sidebar.collapsed .sb-footer {
    justify-content: center;
}

/* ---------- MAIN CONTENT ---------- */
.main-wrap {
    margin-left: var(--sb-width);
    transition: margin-left .28s cubic-bezier(.4,0,.2,1);
    min-height: 100vh;
}

.sidebar.collapsed ~ .main-wrap {
    margin-left: var(--sb-width-collapsed);
}

.topbar {
    /*background: #fff;
    border-bottom: 1px solid #e6e8ee;*/
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    justify-content: space-between;
    top: 0;
    z-index: 10;
}
.dropdown-toggle::after {
    display: none;
}

.topbar .bi-person-circle {
    cursor: pointer;
}

.hamburger {
    border: none;
    background: transparent;
    color: black;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    transition: background .15s ease;
}

    .hamburger:hover {
        background: #5db7e8;
        color: black;
    }

.topbar h5 {
    font-family: var(--font-display);
    margin: 0;
    font-weight: 600;
}

.content {
    padding: 26px;
}

/* overlay for mobile */
.sb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,12,20,.5);
    z-index: 1035;
}

    .sb-overlay.show {
        display: block;
    }


/* Main page below topbar */
.page-content {
    display: flex;
    flex-direction: column;
    /* Adjust according to your topbar height */
    height: calc(100vh - 60px);
}

/* Filter card keeps natural height */
.filter-card {
    flex-shrink: 0;
}

/* Report card takes remaining height */
.report-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
    /* DataTables wrapper fills available height */
    .report-card .dt-container {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }

    /* Card body fills remaining space */
    .report-card .card-body {
        flex: 1;
        overflow: auto;
        padding: 1rem;
    }

    /* DataTable wrapper */
    .report-card .table-responsive {
        height: 100%;
    }
.step-count-card {
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.step-count-item {
    font-size: 14px;
    white-space: nowrap;
}

    .step-count-item .step-name {
        font-weight: 600;
        color: #495057;
        margin-right: 6px;
    }

    .step-count-item .pending-text {
        color: #dc3545;
        font-weight: 600;
        margin-right: 12px;
    }

    .step-count-item .success-text {
        color: #198754;
        font-weight: 600;
    }

/* ---------- RESPONSIVE ---------- */
@media (max-width:860px) {
    .screen {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 0;
    }

    .panel-visual {
        display: none;
    }

    .panel-form {
        min-height: 100vh;
        padding: 32px 20px;
    }
}

@media (min-width:861px) and (max-width:1080px) {
    .form-inner h1 {
        font-size: 1.8rem;
    }
}
@media (max-width: 991.98px) {

    .sidebar {
        width: 250px;
        transform: translateX(-100%);
    }

        .sidebar.mobile-open {
            transform: translateX(0);
        }

    .main-wrap {
        margin-left: 0 !important;
    }

    .sidebar.collapsed {
        width: 250px;
    }
}
