/* BASE STYLES */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    --neon-green: #00ffcc;
    --neon-green-dark: #00997a;
    --red-alert: #ff4444;
    --red-hover: #cc0000;
    --text-main: #f0f0f0;
    --text-muted: #888;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background: var(--bg-dark); color: var(--text-main); min-height: 100vh; overflow-x: hidden; }

/* UTILS */
.hidden { display: none !important; }
.text-neon { color: var(--neon-green); font-weight: bold; }
.text-red { color: var(--red-alert); }
.text-gray { color: var(--text-muted); }
.mt-2 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1.5rem; }
.mw-600 { max-width: 600px; }
.padding-lg { padding: 2rem; }

/* GLASSMORPHISM */
.glass {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}
.border-red-glow { border: 1px solid rgba(255, 68, 68, 0.3); }

/* ANIMATIONS */
.fade-in { animation: fadeIn 0.4s ease forwards; }
.scale-up { animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleUp { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* OVERLAY LOGIN */
.overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 9999; }
.login-box { padding: 3rem; text-align: center; width: 90%; max-width: 400px; }
.login-box h2 { margin-bottom: 0.5rem; font-size: 2rem; }
.login-box p { color: var(--text-muted); margin-bottom: 2rem; }

/* INPUTS & BUTTONS */
.fancy-input {
    width: 100%;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
    margin-bottom: 1rem;
}
.fancy-input:focus { border-color: var(--neon-green); box-shadow: 0 0 10px rgba(0, 255, 204, 0.2); }
.form-group label { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; color: #aaa; }

.btn {
    cursor: pointer; padding: 14px 20px; font-size: 1rem; font-weight: 600; border-radius: 8px; border: none; transition: 0.2s; display: inline-block;
}
.btn-block { width: 100%; }
.btn-primary { background: var(--neon-green); color: black; }
.btn-primary:hover { background: var(--neon-green-dark); box-shadow: 0 0 15px rgba(0, 255, 204, 0.4); }
.btn-danger { background: var(--red-alert); color: white; }
.btn-danger:hover { background: var(--red-hover); box-shadow: 0 0 15px rgba(255, 68, 68, 0.4); }
.btn-outline { background: transparent; border: 1px solid var(--neon-green); color: var(--neon-green); }
.btn-outline:hover { background: rgba(0, 255, 204, 0.1); }
.btn-outline-small { background: transparent; border: 1px solid #aaa; color: #ddd; padding: 8px 12px; font-size: 0.85rem; border-radius: 6px; cursor: pointer; }
.btn-outline-small:hover { background: rgba(255,255,255,0.05); }

/* APP LAYOUT */
.app-container { display: flex; min-height: 100vh; }
.sidebar { width: 260px; border-radius: 0; border-top: none; border-bottom: none; border-left: none; padding: 2rem 0; display: flex; flex-direction: column; }
.sidebar h2 { text-align: center; margin-bottom: 2rem; font-size: 1.5rem; letter-spacing: 1px; }
.sidebar-footer { margin-top: auto; padding: 0 2rem; font-size: 0.8rem; }
.nav-menu { list-style: none; }
.nav-menu li { padding: 1rem 2rem; cursor: pointer; color: #aaa; transition: 0.2s; border-left: 3px solid transparent; font-weight: 600;}
.nav-menu li:hover { background: rgba(255,255,255,0.02); color: white; }
.nav-menu li.active { background: rgba(0, 255, 204, 0.05); color: var(--neon-green); border-left: 3px solid var(--neon-green); }

.content-area { flex: 1; padding: 3rem; overflow-y: auto; }
.header-flex { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.tab-section { display: none; }
.tab-section.active { display: block; animation: fadeIn 0.3s; }

/* CLIENT CARDS */
.clients-grid { display: grid; gap: 1rem; }
.client-card { background: #161616; border: 1px solid var(--border-color); border-radius: 8px; padding: 1.5rem; }
.client-card.expired { border-color: rgba(255,68,68,0.5); background: #1f0b0b; }
.client-header { display: flex; justify-content: space-between; margin-bottom: 1rem; align-items: center; border-bottom: 1px solid #333; padding-bottom: 1rem;}
.hwid-row { display: flex; justify-content: space-between; align-items: center; background: #222; padding: 0.75rem 1rem; border-radius: 6px; margin-top: 0.5rem; font-family: monospace; }
.status-badge { padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; background: #333; }
.status-ativo { color: var(--neon-green); background: rgba(0,255,204,0.1); }
.status-inativo { color: var(--red-alert); background: rgba(255,68,68,0.1); }

/* TOAST */
.toast { position: fixed; bottom: 20px; right: 20px; background: #222; color: white; padding: 1rem 1.5rem; border-radius: 8px; border-left: 4px solid var(--neon-green); z-index: 10000; transition: transform 0.3s, opacity 0.3s; transform: translateY(100px); opacity: 0;}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-left-color: var(--red-alert); }

/* RESULT BOX */
.result-box { margin-top: 1rem; padding: 1rem; background: rgba(0, 255, 204, 0.05); border-radius: 8px; border: 1px dashed var(--neon-green); }

@media (max-width: 768px) {
    .app-container { flex-direction: column; }
    .sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); padding: 1rem 0; }
    .nav-menu { display: flex; }
    .nav-menu li { padding: 1rem; font-size: 0.9rem; flex: 1; text-align: center; border-left: none; border-bottom: 3px solid transparent; }
    .nav-menu li.active { border-left: none; border-bottom: 3px solid var(--neon-green); }
    .content-area { padding: 1rem; }
}
