/* ===================================
   MODERN THEME - ARGOMULYO SYSTEM
   Complete CSS with Enhanced Maintenance Banner
   =================================== */

:root {
    /* Modern Color Palette */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #764ba2;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Radius */
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Z-index */
    --z-overlay: 9998;
    --z-drawer: 9999;
    --z-appbar: 9999;
}

/* ===================================
   MAINTENANCE BANNER (Positioned Below Header)
   =================================== */

.maintenance-banner {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 998;
    padding: 16px 20px;
    margin: 0 0 8px 0;
    /* Reduced margin for closer spacing */
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border-radius: 0 0 20px 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.maintenance-banner.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.maintenance-banner.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.maintenance-banner.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.maintenance-banner-icon {
    font-size: 24px;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

.maintenance-banner-content {
    flex: 1;
}

.maintenance-banner-title {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 4px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.2px;
    color: inherit; /* Ensure color follows parent */
}

.maintenance-banner-message {
    font-size: 13.5px;
    margin: 0;
    opacity: 1; /* Remove opacity for max contrast */
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    color: inherit; /* Ensure color follows parent */
}

.maintenance-banner-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.maintenance-banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.maintenance-banner-close:active {
    transform: rotate(90deg) scale(0.9);
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .maintenance-banner {
        padding: 14px 16px;
        border-radius: 0 0 16px 16px;
        margin: 0 0 8px 0;
        /* Consistent spacing on mobile */
    }

    .maintenance-banner-icon {
        font-size: 20px;
    }

    .maintenance-banner-title {
        font-size: 13px;
    }

    .maintenance-banner-message {
        font-size: 11px;
    }

    .maintenance-banner-close {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}