/* =============================================================
   UPHONE BI · Tema dark neon · by Flip Manage
   ============================================================= */

:root {
    --bg-deep:       #020b1a;
    --bg-mid:        #041529;
    --bg-card:       rgba(4, 21, 41, 0.85);
    --bg-card-hover: rgba(4, 21, 41, 0.95);

    --neon-cyan:     #00d4ff;
    --neon-blue:     #1a9fff;
    --neon-electric: #00f0ff;
    --neon-glow:     rgba(0, 212, 255, 0.5);
    --neon-glow-soft: rgba(0, 212, 255, 0.15);

    --success:       #00ff88;
    --success-soft:  rgba(0, 255, 136, 0.12);
    --success-glow:  rgba(0, 255, 136, 0.4);

    --danger:        #ff4466;
    --danger-soft:   rgba(255, 68, 102, 0.12);
    --danger-glow:   rgba(255, 68, 102, 0.4);

    --warning:       #ff9500;
    --warning-soft:  rgba(255, 149, 0, 0.12);

    --text:          #e8f4ff;
    --text-dim:      #7ab3d4;
    --text-muted:    rgba(122, 179, 212, 0.6);

    --border:        rgba(0, 212, 255, 0.15);
    --border-hover:  rgba(0, 212, 255, 0.35);

    --font-tech:     'Orbitron', 'Courier New', monospace;
    --font-body:     'Rajdhani', 'Segoe UI', system-ui, sans-serif;

    --radius-sm:     6px;
    --radius-md:     10px;
    --radius-lg:     16px;
    --radius-xl:     22px;

    --shadow-glow:   0 0 30px rgba(0, 212, 255, 0.1);
    --shadow-card:   0 8px 32px rgba(0, 0, 0, 0.3);
}

/* === RESET === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100vh;
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* === BACKGROUND ANIMADO === */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%,
            rgba(10, 64, 128, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 100%,
            rgba(0, 61, 119, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 0% 80%,
            rgba(0, 31, 68, 0.2) 0%, transparent 50%),
        linear-gradient(180deg, #020b1a 0%, #041529 40%, #020d20 100%);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: gridShift 30s linear infinite;
    pointer-events: none;
}

@keyframes gridShift {
    0%   { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* === PARTÍCULAS === */
.particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--neon-cyan);
    animation: floatUp linear infinite;
    opacity: 0;
}
@keyframes floatUp {
    0%   { opacity: 0; transform: translateY(100vh) scale(0); }
    10%  { opacity: 1; }
    90%  { opacity: 0.4; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1.5); }
}

/* === CANTOS DECORATIVOS === */
.corner {
    position: fixed;
    width: 60px;
    height: 60px;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
}
.corner-tl { top: 16px; left: 16px;  border-top: 2px solid var(--neon-cyan); border-left: 2px solid var(--neon-cyan); }
.corner-tr { top: 16px; right: 16px; border-top: 2px solid var(--neon-cyan); border-right: 2px solid var(--neon-cyan); }
.corner-bl { bottom: 16px; left: 16px;  border-bottom: 2px solid var(--neon-cyan); border-left: 2px solid var(--neon-cyan); }
.corner-br { bottom: 16px; right: 16px; border-bottom: 2px solid var(--neon-cyan); border-right: 2px solid var(--neon-cyan); }

/* === TIPOGRAFIA === */
h1, h2, h3, h4, h5 { font-family: var(--font-tech); font-weight: 700; letter-spacing: 1px; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; letter-spacing: 2px; text-transform: uppercase; }

.text-cyan    { color: var(--neon-cyan); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-dim     { color: var(--text-dim); }
.text-mono    { font-family: var(--font-tech); }

/* === CARD GENÉRICO === */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    backdrop-filter: blur(20px);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

/* === BOTÕES === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-family: var(--font-tech);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.btn:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 15px var(--neon-glow-soft);
}
.btn:active { transform: scale(0.98); }

.btn-primary {
    background: linear-gradient(135deg, #003d77, #0060b0);
    border-color: var(--neon-cyan);
    color: var(--text);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #004d97, #0080d0);
    box-shadow: 0 0 25px var(--neon-glow);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #004d22, #00892a);
    border-color: var(--success);
}
.btn-success:hover {
    box-shadow: 0 0 20px var(--success-glow);
}

.btn-danger {
    background: linear-gradient(135deg, #4a0e1a, #a02030);
    border-color: var(--danger);
}

.btn-ghost {
    background: transparent;
    border-color: var(--border);
}

/* === INPUTS === */
.input, input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="date"], select, textarea {
    width: 100%;
    padding: 13px 16px;
    background: rgba(0, 20, 50, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input:focus, input:focus, select:focus, textarea:focus {
    border-color: var(--neon-cyan);
    background: rgba(0, 30, 60, 0.7);
    box-shadow: 0 0 0 3px var(--neon-glow-soft);
}
.input::placeholder, input::placeholder { color: var(--text-muted); }

label {
    display: block;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
}

/* === STATUS DOT === */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.8); }
}

/* === DIVIDER COM TÍTULO === */
.section-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0 16px;
    font-family: var(--font-tech);
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--neon-cyan);
    opacity: 0.8;
    text-transform: uppercase;
}
.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
}
.section-divider::before { background: linear-gradient(90deg, transparent, var(--neon-cyan)); }
.section-divider::after  { background: linear-gradient(90deg, var(--neon-cyan), transparent); }

/* === BADGE === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.badge-success { background: var(--success-soft); color: var(--success); border: 1px solid var(--success-glow); }
.badge-danger  { background: var(--danger-soft);  color: var(--danger);  border: 1px solid var(--danger-glow); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-info    { background: var(--neon-glow-soft); color: var(--neon-cyan); border: 1px solid var(--border-hover); }

/* === ANIMAÇÕES === */
.fade-in     { animation: fadeIn 0.5s ease both; }
.slide-down  { animation: slideDown 0.6s ease both; }
.slide-up    { animation: slideUp 0.6s ease both; }

@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp   { from { opacity: 0; transform: translateY(20px);  } to { opacity: 1; transform: translateY(0); } }

/* === SCROLLBAR === */
::-webkit-scrollbar              { width: 10px; height: 10px; }
::-webkit-scrollbar-track        { background: var(--bg-deep); }
::-webkit-scrollbar-thumb        { background: rgba(0, 212, 255, 0.2); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover  { background: rgba(0, 212, 255, 0.4); }

/* === ALERT MESSAGES === */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.4s ease both;
}
.alert-error    { background: var(--danger-soft);  color: var(--danger);  border-color: var(--danger-glow); }
.alert-success  { background: var(--success-soft); color: var(--success); border-color: var(--success-glow); }
.alert-info     { background: var(--neon-glow-soft); color: var(--neon-cyan); border-color: var(--border-hover); }
