/* --- Fonts & Base --- */
body {
    font-family: 'Inter', sans-serif;
}

/* Custom Scrollbar for Dark Panels */
.custom-scrollbar {
    overflow-y: auto;
    overflow-x: hidden;
}
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Custom Highlight Selection */
.selection-custom ::selection {
    background: rgba(244, 63, 94, 0.3); /* Pink highlight */
    color: #fff;
}

/* --- MacOS / Cyber Outer Wrapper --- */
/* Thick soft outer border in muted blue-gray */
.main-wrapper {
    background-color: #334155; /* Outer muted rim */
}

/* --- Dark Glassmorphism Panel --- */
.cyber-panel {
    /* Dark navy/black gradient background with subtle purple tint */
    background: linear-gradient(135deg, #0b1120 0%, #0a0e1a 50%, #020617 100%);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), inset 0 -1px 10px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

/* --- Inner Sections/Cards --- */
.inner-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 1rem; /* rounded corners */
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
    /* Thin glowing outlines on hover */
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}
.inner-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.2), 0 0 20px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

/* --- Noise / Grain Texture --- */
/* Creates a subtle Retina-display grain effect */
.noise-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- Glows & Neons --- */
.glow-green {
    text-shadow: 0 0 10px rgba(39, 201, 63, 0.5);
}
.glow-red {
    text-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}
.glow-pink {
    filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.6));
}
.glow-blue {
    text-shadow: 0 0 12px rgba(59, 130, 246, 0.6), 0 0 20px rgba(59, 130, 246, 0.3);
}
.glow-brand {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}

/* --- Loading Ring Animation --- */
@keyframes dash {
    0% {
        stroke-dashoffset: 251.2;
        transform: rotate(0deg);
    }
    50% {
        stroke-dashoffset: 50;
        transform: rotate(135deg);
    }
    100% {
        stroke-dashoffset: 251.2;
        transform: rotate(360deg);
    }
}
.animate-progress {
    transform-origin: center;
    animation: dash 2s ease-in-out infinite;
}

/* --- Cyber Button --- */
.cyber-button {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}
.cyber-button:not(.opacity-50):hover {
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3), 0 0 20px rgba(59, 130, 246, 0.2), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: translateY(-2px);
}
.cyber-button:not(.opacity-50):active {
    transform: translateY(0px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}
