:root {
    --sidebar-width: 272px;
    --sidebar-collapsed-width: 80px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    min-width: 320px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.35);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.6);
}

/* Sidebar Transitions */
#app-sidebar {
    width: var(--sidebar-width);
    transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

#app-sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

#app-sidebar.collapsed .sidebar-label,
#app-sidebar.collapsed .sidebar-group-title,
#app-sidebar.collapsed .sidebar-badge,
#app-sidebar.collapsed .sidebar-footer-details {
    display: none !important;
}

#app-sidebar.collapsed .sidebar-link {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

#app-sidebar.collapsed .brand-wrap {
    justify-content: center;
}

@media (min-width: 1024px) {
    #main-wrapper {
        margin-left: var(--sidebar-width);
        transition: margin-left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    }

    #main-wrapper.sidebar-is-collapsed {
        margin-left: var(--sidebar-collapsed-width);
    }
}

/* Glass & Surface Utilities */
.glass-header {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Table Action Fix */
.table-actions-cell {
    white-space: nowrap !important;
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.97) translateY(4px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-pop {
    animation: fadeInScale 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}