@tailwind base;

@tailwind components;

@tailwind utilities;

@font-face {
    font-family: 'Metal Mania';
    src: url('../font/MetalMania.ttf') format('truetype');
}

body {
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #e2e8f0;
}

.metal-mania {
    font-family: 'Metal Mania', sans-serif;
    font-weight: 400;
}

/* Custom styles for modern UX */
.sidebar {
    transition: all 0.3s ease-in-out;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .sidebar-text,
.sidebar.collapsed .logo-text,
.sidebar.collapsed .user-info .font-medium,
.sidebar.collapsed .user-info .text-xs,
.sidebar.collapsed .nav-section-title {
    display: none;
}

.sidebar.collapsed .menu-item {
    justify-content: center;
}

.main-wrapper {
    transition: margin-left 0.3s ease-in-out;
}

.main-wrapper.expanded {
    margin-left: 80px;
}

.modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-backdrop.flex {
    display: flex;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        z-index: 1000;
        left: -256px;
        /* w-64 */
        height: 100%;
    }

    .sidebar.open {
        left: 0;
    }

    .main-wrapper {
        margin-left: 0 !important;
    }

    .main-wrapper.expanded {
        margin-left: 0 !important;
    }

    .mobile-menu-btn {
        display: block;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .sidebar.open+.sidebar-overlay {
        display: block;
    }

    .dropdown-menu-offset {
        z-index: 50;
        pointer-events: auto;
    }

    .svg-path {
        stroke: #323232;
        transition: stroke 0.3s;
    }

    .group:hover .svg-path {
        stroke: #2563eb;
        /* Tailwind's blue-600 */
    }

    .eye-icon {
        transition: fill 0.3s ease;
    }

    .eye-icon.eye-open {
        fill: #171e54;
    }
}