@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    transition: margin-left 0.3s;
}

/* Sidebar base styles */
.sidebar {
    width: 16rem;
    transition: all 0.3s;
}

.sidebar-collapsed {
    width: 5rem !important;
}

.sidebar-collapsed .sidebar-text {
    display: none !important;
}

.sidebar-collapsed .logo-text {
    display: none !important;
}

.sidebar-collapsed .user-text {
    display: none !important;
}

.sidebar-collapsed .user-info {
    justify-content: center !important;
    padding: 0.5rem !important;
}

.sidebar-collapsed .nav-item {
    justify-content: center !important;
}

.sidebar-collapsed .badge {
    display: none !important;
}

/* Mobile sidebar styles */
.sidebar-mobile {
    position: fixed;
    z-index: 50;
    height: 100vh;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.sidebar-mobile-visible {
    transform: translateX(0);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

/* Overlay styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay-visible {
    display: block;
    opacity: 1;
}

/* Active nav item */
.nav-item.active {
    background-color: #EFF6FF;
    color: #1E40AF;
    font-weight: 500;
}

.nav-item.active i {
    color: #1E40AF;
}

/* Responsive behavior */
@media (min-width: 768px) {
    .sidebar-mobile {
        transform: none !important;
        position: relative;
        box-shadow: none !important;
    }

    .overlay {
        display: none !important;
    }
}

/* Prevent scrolling when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Other existing styles... */
.progress-ring__circle {
    transition: stroke-dashoffset 0.35s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.animate-bounce-slow {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(-5%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}