/* Base Layout */
body {
    background-color: #0B0C15;
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

/* Utility States */
.hidden {
    display: none !important;
}

.disabled-zone {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(100%);
}

/* Navbar Mobile Fixes */
#navbar-mount {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    /* Ensures the glass panel or header doesn't exceed screen bounds */
    header {
        width: 100% !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    nav a, nav button {
        min-height: 40px;
    }
}

/* Glassmorphism Panels */
.glass-panel {
    background: rgba(17, 25, 40, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

/* SweetAlert Overrides for Glassmorphism */
div:where(.swal2-container) div:where(.swal2-popup) {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Drag & Drop Interaction */
.drop-zone {
    transition: all 0.2s ease-in-out;
    border: 1px dashed #4b5563;
    background: rgba(0, 0, 0, 0.2);
}

.drop-zone:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
}

.drop-zone.drag-over {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
    transform: scale(1.01);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* Site Scrollbar (Neon Style) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Modal Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Terminal Log Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

.log-entry {
    animation: fadeIn 0.2s ease-out forwards;
}