/**
 * MYCITADEL // GLOBAL CORE STYLESHEET v1.0
 * Theme: Year 5055 Neural Interface
 * Colors: Neon Blue (#00f7ff), Alien Green (#00FF41), Deep Space Purple (#1a0b2e)
 */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Share+Tech+Mono&family=IBM+Plex+Mono:wght@300;450&display=swap');

:root {
    --neon-blue: #00f7ff;
    --alien-green: #00FF41;
    --space-purple: #1a0b2e;
    --deep-black: #02040a;
    --gold: #d4af37;
    --glass: rgba(255, 255, 255, 0.03);
    --border-glow: rgba(0, 247, 255, 0.2);
}

/* --- 1. GLOBAL RESET & BASE --- */
body {
    background-color: var(--deep-black);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(26, 11, 46, 0.8) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 247, 255, 0.05) 0%, transparent 30%);
    color: #e0e0e0;
    font-family: 'IBM Plex Mono', monospace;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- 2. TYPOGRAPHY & GLOW EFFECTS --- */
h1 {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    text-shadow: 0 0 15px rgba(0, 247, 255, 0.6), 0 0 30px rgba(0, 247, 255, 0.2);
    animation: textPulse 4s infinite ease-in-out;
}

h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    color: var(--alien-green);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.1rem;
}

p {
    font-family: 'IBM Plex Mono', sans-serif;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.terminal-row {
    border-left: 2px solid rgba(0, 255, 65, 0.3);
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.05) 0%, transparent 100%);
    transition: all 0.2s ease;
}
.terminal-row:hover {
    border-left: 2px solid var(--alien-green);
    background: linear-gradient(90deg, rgba(0, 255, 65, 0.1) 0%, transparent 100%);
}

/* --- 3. THE COMMAND BRIDGE (NAV) --- */
nav {
    border-bottom: 1px solid var(--border-glow) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-link-custom {
    font-family: 'Share Tech Mono', monospace;
    color: var(--neon-blue) !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.nav-link-custom:hover {
    color: var(--alien-green) !important;
    text-shadow: 0 0 8px var(--alien-green);
}

/* --- 4. GLASSMORPHISM CARDS --- */
.citadel-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    border-radius: 4px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.citadel-card:hover {
    border-color: var(--alien-green);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.1);
}

.citadel-card::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    animation: scanning 3s infinite;
}

/* --- 5. THE DATA FLOOR (FOOTER) --- */
footer {
    border-top: 1px solid rgba(212, 175, 55, 0.1) !important;
    background: linear-gradient(to bottom, transparent, var(--space-purple));
}

/* --- 6. ANIMATIONS --- */
@keyframes textPulse {
    0%, 100% { opacity: 1; filter: brightness(100%); }
    50% { opacity: 0.8; filter: brightness(130%); }
}

@keyframes scanning {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* --- 7. UTILITIES --- */
.text-alien { color: var(--alien-green); }
.text-neon { color: var(--neon-blue); }
.glow-border { border: 1px solid var(--neon-blue); box-shadow: 0 0 10px var(--border-glow); }

/* --- CITADEL TACTICAL INPUT SUITE --- */

/* Base Input & Select Styling */
.citadel-input {
    background-color: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.75rem 1rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    letter-spacing: 0.05em;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none; /* Removes default browser styling for selects */
}

/* Input Focus States */
.citadel-input:focus {
    outline: none;
    border-color: #FFD700; /* Gold */
    background-color: rgba(255, 215, 0, 0.05) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

/* Specific styling for the SMS Node (Alien Green) */
.border-l-alien-green .citadel-input:focus {
    border-color: #39ff14; /* Alien Green */
    background-color: rgba(57, 255, 20, 0.05) !important;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.1);
}

/* Placeholder Styling */
.citadel-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    font-size: 10px;
}

/* Custom Dropdown Arrow for Select Fields */
select.citadel-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23FFD700' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Select Option Styling (Browser Dependent) */
select.citadel-input option {
    background-color: #0a0a0a;
    color: #FFD700;
    padding: 10px;
}

/* The 12-Digit Challenge Code Field */
input[name="challenge_code"].citadel-input {
    font-size: 1.5rem;
    border: 1px dashed rgba(255, 215, 0, 0.3);
    background: rgba(255, 215, 0, 0.02) !important;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

input[name="challenge_code"].citadel-input:focus {
    border-style: solid;
    border-color: #FFD700;
}

/* Chrome/Safari/Brave Auto-fill Fix */
.citadel-input:-webkit-autofill,
.citadel-input:-webkit-autofill:hover, 
.citadel-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0px 1000px #0a0a0a inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Input Group Prefixes (The "+" for Phone) */
.flex > span.bg-white\/5 {
    border-right: none;
    font-weight: bold;
    color: #FFD700;
}