/* ==========================================================
   FIXED STATIC TOPBARS
========================================================== */

body {
    padding-top: 130px;
}

/* ==========================================================
   STATUS TOPBAR COLORS
========================================================== */

.kd-status-topbar {
    width: 100%;
    height: 42px;
    color: #ffffff;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2147483646;
    transition: background .25s ease, box-shadow .25s ease;
}

.kd-status-open {
    background: #16a34a;
    box-shadow: 0 8px 24px rgba(22, 163, 74, .22);
}

.kd-status-closed {
    background: #dc2626;
    box-shadow: 0 8px 24px rgba(220, 38, 38, .22);
}

.kd-status-closing-soon {
    background: #f59e0b;
    box-shadow: 0 8px 24px rgba(245, 158, 11, .25);
}

.kd-status-opening-soon {
    background: #2563eb;
    box-shadow: 0 8px 24px rgba(37, 99, 235, .25);
}

.kd-status-maintenance {
    background: #7c3aed;
    box-shadow: 0 8px 24px rgba(124, 58, 237, .25);
}

html[data-theme="dark"] .kd-status-open,
body.dark-mode .kd-status-open {
    background: #15803d;
}

html[data-theme="dark"] .kd-status-closed,
body.dark-mode .kd-status-closed {
    background: #b91c1c;
}

html[data-theme="dark"] .kd-status-closing-soon,
body.dark-mode .kd-status-closing-soon {
    background: #d97706;
}

html[data-theme="dark"] .kd-status-opening-soon,
body.dark-mode .kd-status-opening-soon {
    background: #1d4ed8;
}

html[data-theme="dark"] .kd-status-maintenance,
body.dark-mode .kd-status-maintenance {
    background: #6d28d9;
}

/* ==========================================================
   MAIN USER TOPBAR
========================================================== */

.kd-user-topbar {
    width: 100%;
    height: 88px;
    background: var(--kd-topbar-bg, #ffffff);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 8px 30px rgba(15, 23, 42, .06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    position: fixed;
    top: 42px;
    left: 0;
    right: 0;
    z-index: 2147483645;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

html[data-theme="dark"] .kd-user-topbar,
body.dark-mode .kd-user-topbar {
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}

/* ==========================================================
   STATUS MARQUEE
========================================================== */

.kd-status-track {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.kd-status-marquee {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    min-width: max-content;
    animation: kdStatusMarquee 28s linear infinite;
    padding-left: 100%;
}

.kd-status-marquee:hover {
    animation-play-state: paused;
}

.kd-status-marquee span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 800;
}

.kd-status-marquee i {
    color: rgba(255, 255, 255, .9);
}

.kd-status-marquee a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    margin-left: 6px;
    transition: all .25s ease;
}

.kd-status-marquee a:hover {
    background: #ffffff;
    color: #0f172a;
}

@keyframes kdStatusMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ==========================================================
   LOGO
========================================================== */

.kd-topbar-logo {
    display: flex;
    align-items: center;
    min-width: 0;
}

.kd-topbar-logo a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.kd-topbar-logo img {
    height: 52px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

/* ==========================================================
   ACTIONS
========================================================== */

.kd-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
}

.kd-topbar-icon,
.kd-topbar-profile {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, .14);
    background: #ffffff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    font-size: 17px;
    line-height: 1;
    transition: all .25s ease;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .06);
    outline: none;
}

html[data-theme="dark"] .kd-topbar-icon,
html[data-theme="dark"] .kd-topbar-profile,
body.dark-mode .kd-topbar-icon,
body.dark-mode .kd-topbar-profile {
    background: #111827;
    border-color: rgba(96, 165, 250, .20);
    color: #93c5fd;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.kd-topbar-icon:hover,
.kd-topbar-profile:hover,
.kd-topbar-icon.active {
    background: #2563eb;
    color: #ffffff !important;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(37, 99, 235, .22);
}

.kd-topbar-profile {
    background: #2563eb;
    color: #ffffff !important;
    border-color: #2563eb;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .4px;
}

.kd-topbar-profile:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

/* ==========================================================
   NOTIFICATION DOT
========================================================== */

.kd-has-alert span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #ffffff;
    position: absolute;
    top: 10px;
    right: 10px;
}

html[data-theme="dark"] .kd-has-alert span,
body.dark-mode .kd-has-alert span {
    border-color: #111827;
}

/* ==========================================================
   BUTTON AND ICON FIXES
========================================================== */

button.kd-topbar-icon {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
}

.kd-topbar-icon i,
.kd-topbar-profile i,
.kd-status-marquee i {
    font-style: normal !important;
    line-height: 1 !important;
}

.kd-topbar-icon .fa-solid,
.kd-topbar-icon .fas,
.kd-status-marquee .fa-solid,
.kd-status-marquee .fas {
    font-weight: 900 !important;
}

.kd-topbar-icon .fa-regular,
.kd-topbar-icon .far {
    font-weight: 400 !important;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 768px) {
    body {
        padding-top: 116px;
    }

    .kd-status-topbar {
        height: 38px;
    }

    .kd-user-topbar {
        height: 78px;
        top: 38px;
        padding: 0 18px;
    }

    .kd-status-marquee {
        gap: 22px;
        animation-duration: 24s;
    }

    .kd-status-marquee span {
        font-size: 13px;
    }

    .kd-status-marquee a {
        height: 26px;
        padding: 0 12px;
        font-size: 12px;
    }

    .kd-topbar-logo img {
        height: 42px;
        max-width: 145px;
    }

    .kd-topbar-actions {
        gap: 8px;
    }

    .kd-topbar-icon,
    .kd-topbar-profile {
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 14px;
        font-size: 15px;
    }
}

@media (max-width: 520px) {
    body {
        padding-top: 108px;
    }

    .kd-status-topbar {
        height: 36px;
    }

    .kd-user-topbar {
        height: 72px;
        top: 36px;
        padding: 0 12px;
    }

    .kd-status-marquee {
        gap: 18px;
        animation-duration: 22s;
    }

    .kd-status-marquee span {
        font-size: 12px;
    }

    .kd-status-marquee a {
        height: 24px;
        padding: 0 10px;
        font-size: 11px;
    }

    .kd-topbar-logo img {
        height: 38px;
        max-width: 115px;
    }

    .kd-topbar-actions {
        gap: 6px;
    }

    .kd-topbar-icon,
    .kd-topbar-profile {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 12px;
        font-size: 14px;
    }
}

@media (max-width: 390px) {
    .kd-topbar-logo img {
        max-width: 96px;
    }

    .kd-topbar-icon,
    .kd-topbar-profile {
        width: 35px;
        height: 35px;
        min-width: 35px;
        border-radius: 11px;
        font-size: 13px;
    }

    .kd-topbar-actions {
        gap: 5px;
    }
}