/* =========================================
   GH GLOBAL STYLES (V4.0)
   "The Chaos Engine"
========================================= */

:root {
    --gh-yellow: #fdff55;
    --gh-blue: #00eaff;
    --gh-red: #ff4444;
    --gh-purple: #bd00ff;
    --gh-gold: #ffd700;
    --gh-bg: #050505;
    --gh-card-bg: #111;
    --gh-font: 'Segoe UI', Arial, sans-serif;
}

/* --- CORE --- */
body {
    margin: 0;
    background: var(--gh-bg);
    color: #fff;
    font-family: var(--gh-font);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    animation: fadeInPage 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInPage { to { opacity: 1; } }

/* --- SCROLLBARS --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: var(--gh-blue); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gh-yellow); }

/* --- BACKGROUND FX --- */
body::before { 
    content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background: radial-gradient(circle at 50% 0%, rgba(0, 234, 255, 0.1) 0%, transparent 60%);
}

.particles { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.particle { 
    position: absolute; width: 3px; height: 3px; background: rgba(255,255,255,0.2); 
    border-radius: 50%; animation: drift 15s linear infinite; 
}

@keyframes drift { 
    0% { transform: translateY(0); opacity: 0; } 
    50% { opacity: 0.5; } 
    100% { transform: translateY(-100vh); opacity: 0; } 
}

/* --- LAYOUT UTILITIES --- */
.page-wrap { display: flex; min-height: calc(100vh - 70px); }
.content { 
    flex-grow: 1; padding: 30px; max-width: 1400px; 
    margin: 0 auto; width: 100%; box-sizing: border-box; 
    display: flex; flex-direction: column;
}

/* --- TEXT & HEADERS --- */
.page-header { text-align: center; margin-bottom: 40px; position: relative; }
.page-title { 
    font-size: 42px; font-weight: 900; color: #fff; text-transform: uppercase; 
    letter-spacing: 3px; margin: 0; text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}
.page-subtitle { 
    color: var(--gh-blue); font-size: 14px; letter-spacing: 2px; 
    margin-top: 5px; text-transform: uppercase; font-weight: bold;
}

/* --- GLOBAL UI COMPONENTS --- */

/* Standard Input */
.gh-input, .gh-select { 
    width: 100%; background: #000; border: 1px solid #333; color: #fff; 
    padding: 12px; margin-bottom: 15px; border-radius: 6px; box-sizing: border-box; font-family: inherit;
}
.gh-input:focus { border-color: var(--gh-yellow); outline: none; }

/* Standard Modal */
.gh-modal { 
    display: none; position: fixed; z-index: 5000; inset: 0; 
    background: rgba(0,0,0,0.9); justify-content: center; align-items: center; 
    backdrop-filter: blur(5px); 
}
.gh-modal-content { 
    background: #111; border: 2px solid var(--gh-blue); padding: 30px; 
    border-radius: 12px; width: 90%; max-width: 500px; 
    box-shadow: 0 0 50px rgba(0, 234, 255, 0.2); max-height: 90vh; overflow-y: auto; 
}

/* Action Buttons */
.gh-btn { 
    padding: 12px 20px; border-radius: 6px; font-weight: bold; 
    border: none; cursor: pointer; transition: 0.2s; text-transform: uppercase;
}
.gh-btn:hover { transform: scale(1.05); filter: brightness(1.2); }

.btn-primary { background: var(--gh-yellow); color: #000; }
.btn-secondary { background: #333; color: #fff; border: 1px solid #555; }
.btn-danger { background: rgba(255, 68, 68, 0.2); color: var(--gh-red); border: 1px solid var(--gh-red); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .content { padding: 15px; }
    .page-title { font-size: 28px; }
    .gh-modal-content { padding: 20px; }
}