/* Custom MudBlazor Theme Enhancements */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

body {
    font-family: 'PT Sans', sans-serif;
}

/* AppBar Enhancements */
.mud-appbar {
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(156, 163, 175, 0.1);
}

.mud-appbar .mud-text {
    background: linear-gradient(45deg, #9ca3af, #6b7280);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Drawer Enhancements */
.mud-drawer {
    background: linear-gradient(180deg, #1e1e1e 0%, #2d2d2d 100%) !important;
    border-right: 1px solid rgba(156, 163, 175, 0.1) !important;
}

.mud-drawer-header {
    background: rgba(156, 163, 175, 0.05) !important;
    border-bottom: 1px solid rgba(156, 163, 175, 0.2) !important;
}

/* Navigation Links */
.mud-nav-link {
    border-radius: 8px !important;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.mud-nav-link:hover {
    background: rgba(156, 163, 175, 0.1) !important;
    transform: translateX(4px);
}

.mud-nav-link.active {
    background: linear-gradient(90deg, rgba(156, 163, 175, 0.2), rgba(107, 114, 128, 0.1)) !important;
    border-left: 3px solid #9ca3af;
}

.mud-nav-group .mud-nav-group-header {
    color: #b0b0b0 !important;
    font-weight: 500;
    padding: 8px 16px;
}

/* Custom Chip Styling */
.user-chip {
    background: rgba(156, 163, 175, 0.1) !important;
    color: #9ca3af !important;
    border: 1px solid rgba(156, 163, 175, 0.3) !important;
}

/* Menu and Button Enhancements */
.mud-button:hover {
    background: rgba(156, 163, 175, 0.1) !important;
}

.mud-menu .mud-list-item:hover {
    background: rgba(156, 163, 175, 0.1) !important;
}

/* Custom Divider */
.custom-divider {
    background-color: rgba(255, 255, 255, 0.1) !important;
    margin: 8px 0;
}

/* Main Content Area */
.mud-main-content {
    background: #1a1a1a !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #2d2d2d;
}

::-webkit-scrollbar-thumb {
    background: #4a4a4a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Icon Button Enhancements */
.mud-icon-button {
    transition: all 0.3s ease;
}

.mud-icon-button:hover {
    background: rgba(156, 163, 175, 0.1) !important;
    transform: scale(1.1);
}

/* Logo and Branding */
.brand-text {
    background: linear-gradient(45deg, #9ca3af, #6b7280);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .mud-appbar .mud-text {
        font-size: 1rem;
    }

    .mud-drawer {
        width: 240px !important;
    }
    
    /* Ensure proper spacing in mobile appbar */
    .mud-appbar .mud-stack {
        gap: 4px !important;
    }
    
    /* Hide user chip on very small screens */
    .user-chip {
        max-width: 120px;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    /* On very small screens, hide the user chip completely */
    .user-chip {
        display: none !important;
    }
    
    /* Reduce spacing even more */
    .mud-appbar .mud-stack {
        gap: 2px !important;
    }
}

/* Animation Enhancements */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Focus States */
.mud-nav-link:focus,
.mud-icon-button:focus {
    outline: 2px solid #9ca3af;
    outline-offset: 2px;
}