/* ========================================
   NEO CORTEX - Design Matrix Verde Neon
   ======================================== */

:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #86efac;
    --accent: #a3e635;
    --background: #001a0d;
    --surface: rgba(0, 26, 13, 0.6);
    --border: rgba(34, 197, 94, 0.3);
    --text: #d9f99d;
    --text-muted: #86efac;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--background) 0%, #000000 50%, var(--background) 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ========== TIPOGRAFIA ========== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--primary);
}

h1 {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(34, 197, 94, 0.5);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

/* ========== CONTAINER ========== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== HEADER ========== */

header {
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.nav-auth {
    display: flex;
    gap: 1rem;
}

/* ========== BOTÕES ========== */

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid var(--primary);
    border-radius: 6px;
    background: transparent;
    color: var(--primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background: var(--primary);
    color: var(--background);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
    transform: translateY(-2px);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.6);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: var(--background);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== CARDS ========== */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
    transform: translateY(-5px);
}

.card h3 {
    color: var(--primary);
    margin-top: 0;
}

/* ========== SEÇÕES ========== */

section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
}

section:last-child {
    border-bottom: none;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    border: none;
    padding: 0;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== GRID ========== */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ========== FORMULÁRIOS ========== */

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.05);
}

input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========== ALERTAS ========== */

.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--success);
    color: var(--primary-light);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: #fca5a5;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: #fcd34d;
}

.alert-info {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--primary);
    color: var(--text-muted);
}

/* ========== HERO SECTION ========== */

.hero {
    padding: 100px 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    border-bottom: 2px solid var(--border);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== BADGE ========== */

.badge {
    display: inline-block;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 5px;
}

/* ========== FOOTER ========== */

footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 2px solid var(--border);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    margin-top: 60px;
}

footer p {
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

/* ========== TABELAS ========== */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

thead {
    background: rgba(34, 197, 94, 0.1);
    border-bottom: 2px solid var(--border);
}

th {
    padding: 12px;
    text-align: left;
    color: var(--primary);
    font-weight: 600;
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

tbody tr:hover {
    background: rgba(34, 197, 94, 0.05);
}

/* ========== LOADING ========== */

.spinner {
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    nav {
        gap: 1rem;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 15px;
    }

    nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    section {
        padding: 40px 0;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ========== UTILITÁRIOS ========== */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none;
}

.highlight {
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}
