/* --- MAIN LEGACY STYLES CLEARED & MIGRATED TO COMPONENT ARCHITECTURE --- */


/* SIDEBAR */

.main-nav {
    display: flex;
    height: 100%;
    flex-direction: column
}

.sidebar {
    position: absolute;
    left: 0px;
    top: 0px;
    z-index: 1002;
    display: flex;
    height: 100%;
    width: 56px;
    flex-direction: column;
    border-right-width: 0px;
    border-color: #111b211a;
    --tw-bg-opacity: 1;
    background-color: rgb(13 13 18 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(226 226 226 / var(--tw-text-opacity, 1));
    --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
}

.sidebar-header {
    display: flex;
    min-height: 49px;
    width: 56px;
    align-items: center;
    justify-content: center
}

.sidebar-header .sidebar-item {
    height: 100%;
    padding: 0.25rem
}

.sidebar-header .sidebar-item .sidebar-item-icon {
    background-color: transparent;
    padding: 0px
}

.sidebar-container {
    display: flex;
    height: 100%;
    width: 56px;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.25rem;
    overflow-y: auto;
    padding-bottom: 0.75rem;
    scrollbar-width: none
}

.sidebar-container::-webkit-scrollbar {
    display: none;
}

.sidebar-group {
    display: flex;
    width: 56px;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem
}

.sidebar-item {
    position: relative;
    display: flex;
    height: 38px;
    width: 56px;
    cursor: pointer;
    align-items: center;
    justify-content: center
}

.sidebar-item-icon {
    z-index: 10;
    height: 2rem;
    width: 2rem;
    overflow: visible;
    border-radius: 1rem;
    background-color: rgb(255 255 255 / 0.1);
    padding: 0.25rem;
    transition-property: all;
    transition-duration: 150ms;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    will-change: border-radius
}

.sidebar-item-icon svg {
    height: 1.5rem;
    width: 1.5rem
}

.sidebar-item-badge {
    position: absolute;
    top: 0px;
    right: 0.25rem;
    z-index: 20;
    display: flex;
    height: 1.25rem;
    width: 1.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    --tw-bg-opacity: 1;
    background-color: var(--zr-accent);
    font-size: 10px;
    font-weight: 700;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1))
}

.sidebar-item-active .sidebar-item-icon,
.sidebar-item:hover .sidebar-item-icon {
    border-radius: 0.5rem;
    --tw-bg-opacity: 1;
    background-color: rgb(226 226 226 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(13 13 18 / var(--tw-text-opacity, 1))
}

.sidebar-item::before {
    content: "";
    position: absolute;
    left: 0.25rem;
    right: 0.15rem;
    height: 100%;
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
}

.sidebar-item-active::before {
    background-color: rgb(255 255 255 / 0.25)
}


/* SCROLLBAR */

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--zr-black-rgb), .2) transparent;
}

.dark * {
    scrollbar-color: rgba(var(--zr-white-rgb), .16) transparent;
}

*::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
}

*::-webkit-scrollbar-thumb {
    background-color: rgba(var(--zr-black-rgb), .2);
}

.dark *::-webkit-scrollbar-thumb {
    background-color: rgba(var(--zr-white-rgb), .16);
}

*::-webkit-scrollbar-track {
    background: rgba(var(--zr-white-rgb), .1);
}

.dark *::-webkit-scrollbar-track {
    background-color: transparent;
}

/* MODAL LOADING Z-INDEX */
#loading-modal {
    z-index: 1002;
}

/* --- Toast Notification --- */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 10px 16px;
    border-radius: 6px;
    color: #fafafa;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    animation: slideIn 0.4s ease-out forwards, fadeOut 0.4s 4.5s ease-in forwards;
}

.toast.success {
    background-color: rgba(16, 185, 129, 0.85);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.3);
}

.toast.error {
    background-color: rgba(239, 68, 68, 0.85);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.3);
}

.toast.warn,
.toast.warning {
    background-color: rgba(245, 158, 11, 0.85);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.3);
}

.toast.info {
    background-color: rgba(59, 130, 246, 0.85);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Login Component Styles */
.login-container {
    position: relative;
    left: 0px;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    padding-left: 0px;
    /* padding-left: var(--zr-ssw-sidebar-width); */
}