/* assets/style.css — tema Evolua */
:root {
    --brand:  #75EFFF;
    --brand2: #43d9e8;
    --bg1: #211843;
    --bg2: #15102e;
    --card: rgba(255, 255, 255, 0.04);
    --card-border: rgba(117, 239, 255, 0.12);
    --text: #e5e7eb;
    --muted: #9aa4b2;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial;
    background: linear-gradient(135deg, var(--bg1) 0%, var(--bg2) 100%);
    min-height: 100vh;
    color: var(--text);
}

.bg-gradient {
    position: fixed; inset: 0;
    background:
        radial-gradient(1000px 600px at 10% -10%, rgba(117,239,255,0.08), transparent 60%),
        radial-gradient(800px 600px at 110% 110%, rgba(79,70,229,0.08), transparent 55%);
    z-index: 0; pointer-events: none;
}

/* ─── NAVBAR ─── */
.nav-bar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(15, 12, 35, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}
.nav-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 14px 20px;
    display: flex; align-items: center; gap: 24px;
}
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 1.05rem;
    color: var(--brand); text-decoration: none;
}
.nav-logo { font-size: 1.4rem; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link {
    color: var(--muted); text-decoration: none;
    padding: 6px 12px; border-radius: 8px;
    font-size: 0.9rem; font-weight: 600;
    transition: all .15s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--brand); background: rgba(117,239,255,0.08); }
.nav-user { display: flex; align-items: center; gap: 12px; }
.nav-user-name { color: var(--muted); font-size: 0.85rem; }
.nav-logout {
    color: var(--muted); text-decoration: none;
    padding: 6px 12px; border-radius: 8px;
    font-size: 0.85rem; border: 1px solid var(--card-border);
    transition: all .15s;
}
.nav-logout:hover { color: #fecaca; border-color: #ef4444; }

/* ─── MAIN ─── */
.main-wrap {
    max-width: 1280px; margin: 0 auto;
    padding: 30px 20px;
    position: relative; z-index: 1;
}

/* ─── PAGE HEADER ─── */
.page-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.page-title {
    font-size: 1.75rem; font-weight: 800; margin: 0 0 4px;
    background: linear-gradient(90deg, #fff, var(--brand));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.page-subtitle { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ─── CARDS ─── */
.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
}

/* ─── BOTÕES ─── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 10px;
    font-weight: 700; font-size: 0.9rem;
    cursor: pointer; border: 0;
    text-decoration: none;
    transition: all .15s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
    color: var(--bg1);
    box-shadow: 0 6px 20px rgba(117, 239, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(117, 239, 255, 0.35); }
.btn-secondary {
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border: 1px solid var(--card-border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
}
.btn-danger:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(220,38,38,.3); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }

/* ─── INPUTS ─── */
.field { margin-bottom: 16px; }
.field-label {
    display: block; font-weight: 600; font-size: 0.85rem;
    color: var(--text); margin-bottom: 6px;
}
.input, .select, .textarea {
    width: 100%; padding: 10px 12px;
    background: rgba(0,0,0,0.3);
    color: var(--text);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: all .15s;
}
.input:focus, .select:focus, .textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(117, 239, 255, 0.1);
}
.input-mono { font-family: ui-monospace, monospace; font-size: 0.82rem; }
.input-readonly { background: rgba(0,0,0,0.15); color: var(--muted); }
.field-hint { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 4px; }

/* ─── TABELA ─── */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--card-border); }
.table { width: 100%; border-collapse: collapse; }
.table th {
    text-align: left; padding: 12px 16px;
    font-size: 0.75rem; font-weight: 700;
    color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--card-border);
}
.table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.9rem;
}
.table tbody tr:hover { background: rgba(255,255,255,0.02); }
.table tbody tr:last-child td { border-bottom: 0; }

/* ─── BADGES ─── */
.badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 999px;
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.badge-emerald  { background: rgba(16,185,129,0.15);  color: #6ee7b7; }
.badge-amber    { background: rgba(245,158,11,0.15);  color: #fcd34d; }
.badge-rose     { background: rgba(244,63,94,0.15);   color: #fda4af; }
.badge-gray     { background: rgba(156,163,175,0.15); color: #d1d5db; }

/* ─── FLASH ─── */
.flash {
    padding: 12px 16px; border-radius: 10px;
    margin-bottom: 16px;
    border-left: 4px solid;
    font-size: 0.9rem;
}
.flash-success {
    background: rgba(16,185,129,0.1); border-color: #10b981; color: #a7f3d0;
}
.flash-error {
    background: rgba(244,63,94,0.1); border-color: #f43f5e; color: #fda4af;
}
.flash-info {
    background: rgba(117,239,255,0.08); border-color: var(--brand); color: var(--brand);
}

/* ─── LICENSE KEY DISPLAY ─── */
.lkey-box {
    background: linear-gradient(135deg, rgba(117,239,255,0.08) 0%, rgba(79,70,229,0.05) 100%);
    border: 1px dashed var(--brand);
    border-radius: 12px;
    padding: 16px; margin: 12px 0;
    font-family: ui-monospace, monospace;
    font-size: 1.1rem; font-weight: 700;
    color: var(--brand);
    letter-spacing: 1px;
    text-align: center;
    user-select: all;
}

/* ─── STAT CARDS ─── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px; margin-bottom: 24px;
}
.stat {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px 18px;
}
.stat-label { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--brand); margin-top: 4px; }

/* ─── LOGIN ─── */
.login-wrap {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; position: relative; z-index: 1;
}
.login-card {
    width: 100%; max-width: 420px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.login-logo {
    text-align: center;
    margin-bottom: 24px;
}
.login-logo-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand2) 100%);
    border-radius: 18px;
    font-size: 2rem;
    margin-bottom: 12px;
}
.login-title {
    font-size: 1.4rem; font-weight: 800; margin: 0 0 6px;
}
.login-subtitle { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* Misc */
.muted { color: var(--muted); }
.text-mono { font-family: ui-monospace, monospace; }
.text-xs { font-size: 0.78rem; }
.copy-btn { background: none; border: 0; color: var(--brand); cursor: pointer; font-size: 0.8rem; }
.copy-btn:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .nav-inner { padding: 10px 14px; gap: 12px; }
    .nav-links { gap: 0; }
    .nav-link { padding: 4px 8px; font-size: 0.82rem; }
    .nav-user-name { display: none; }
    .main-wrap { padding: 20px 14px; }
    .page-title { font-size: 1.4rem; }
}
