/* Custom transitions and utility classes */
[v-cloak] { display: none !important; }

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sidebar Responsive & Collapsible logic */
#sidebar-wrapper {
    z-index: 1000;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

/* Collapsed State on Desktop (md+) */
@media (min-width: 769px) {
    #sidebar-wrapper.collapsed {
        width: 80px !important;
    }
    #sidebar-wrapper.collapsed .sidebar-text {
        display: none !important;
    }
    #sidebar-wrapper.collapsed .sidebar-icon {
        margin-right: 0 !important;
        margin-left: 10px !important;
    }
    #sidebar-wrapper.collapsed .sidebar-icon-main {
        margin-right: 0 !important;
    }
}

/* Mobile logic (<md) */
@media (max-width: 768px) {
    #sidebar-wrapper {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        z-index: 1050;
        width: 280px !important;
    }
    #sidebar-wrapper.show {
        left: 0;
    }
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
        display: none;
    }
    .sidebar-overlay.show {
        display: block;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.transition-all { transition: all 0.3s ease; }
.hover-light:hover { background: rgba(255,255,255,0.1); }
.text-nowrap { white-space: nowrap; }
