@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-dark: #000000;
    --bg-panel: #09090b;
    --bg-card: #121214;
    --neon-green: #ccff00;
    --neon-green-hover: #b3e600;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --border-color: #27272a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* =========================================
   CUSTOM SCROLLBAR (Fina e Elegante)
========================================= */
::-webkit-scrollbar {
    width: 6px; /* Barra bem fina */
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-green);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Restante do CSS do Login... */
.login-body { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at top, #111113 0%, #000000 100%); }
.login-container { background-color: var(--bg-panel); border: 1px solid var(--border-color); padding: 40px; border-radius: 16px; width: 90%; max-width: 400px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(204, 255, 0, 0.05); }
.login-container h1 { text-align: center; font-size: 32px; font-weight: 800; letter-spacing: -1px; margin-bottom: 30px; }
.login-container h1 span { color: var(--neon-green); }
.login-container input { width: 100%; padding: 16px; margin-bottom: 15px; background-color: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-main); font-size: 14px; transition: all 0.3s ease; }
.login-container input:focus { border-color: var(--neon-green); outline: none; box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.15); }
.login-container .btn-neon { width: 100%; padding: 16px; font-size: 15px; margin-top: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.alerta { background: rgba(255, 50, 50, 0.1); color: #ff4d4d; border: 1px solid rgba(255, 50, 50, 0.3); padding: 12px; border-radius: 8px; text-align: center; margin-bottom: 20px; font-size: 13px; font-weight: 500; }

/* HEADER MOBILE (Oculto no Desktop) */
.mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--bg-panel);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}
.mobile-header .logo { margin: 0; font-size: 20px; }
.menu-toggle {
    background: transparent;
    border: none;
    color: var(--neon-green);
    font-size: 24px;
    cursor: pointer;
}

/* OVERLAY DO MENU MOBILE */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(3px);
    z-index: 998;
}
.sidebar-overlay.active { display: block; }

/* LAYOUT DO DASHBOARD */
.layout { display: flex; width: 100%; height: 100%; overflow: hidden; }

.sidebar {
    width: 280px;
    background-color: var(--bg-panel);
    border-right: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    flex-direction: column;
    z-index: 999;
}
.content { flex: 1; padding: 40px; overflow-y: auto; background-color: var(--bg-dark); }
.preview-panel { width: 420px; background-color: var(--bg-panel); border-left: 1px solid var(--border-color); padding: 30px; overflow-y: auto; }

/* SIDEBAR & USER CARD */
.logo { font-size: 26px; font-weight: 800; margin-bottom: 30px; letter-spacing: -1px; }
.logo span { color: var(--neon-green); }
.user-card { background-color: var(--neon-green); color: #000; border-radius: 16px; padding: 20px; margin-bottom: 30px; box-shadow: 0 4px 20px rgba(204, 255, 0, 0.15); }
.user-info { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.avatar { background: rgba(0,0,0,0.15); width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.user-info p { font-size: 15px; margin-bottom: 2px; }
.user-info span { font-size: 12px; font-weight: 600; opacity: 0.8; }
.btn-add-credit { width: 100%; background: transparent; border: 1px solid rgba(0,0,0,0.2); padding: 10px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 13px; transition: 0.2s; }
.btn-add-credit:hover { background: rgba(0,0,0,0.08); }

/* MENUS */
.menu a { display: flex; align-items: center; gap: 12px; color: var(--text-muted); text-decoration: none; padding: 12px 15px; border-radius: 8px; margin-bottom: 4px; font-size: 14px; font-weight: 500; transition: 0.2s; }
.menu a i { font-size: 16px; width: 20px; text-align: center; }
.menu a:hover, .menu a.active { background-color: var(--bg-card); color: var(--text-main); }
.menu a.active { border-left: 3px solid var(--neon-green); border-radius: 0 8px 8px 0; }
.menu-label { font-size: 11px; color: #52525b; margin: 25px 0 10px 15px; font-weight: 700; letter-spacing: 0.5px; }
.logout { margin-top: auto; display: flex; align-items: center; gap: 10px; color: #ef4444; text-decoration: none; padding: 12px 15px; font-weight: 600; transition: 0.2s; }
.logout:hover { background: rgba(239, 68, 68, 0.1); border-radius: 8px; }
.mt-2 { margin-top: 20px; }

/* BOTOES E FORMS */
.btn-neon { background-color: var(--neon-green); color: #000; border: none; padding: 14px 24px; border-radius: 8px; font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-neon:hover { background-color: var(--neon-green-hover); box-shadow: 0 0 15px rgba(204, 255, 0, 0.3); }
.btn-sec { background-color: var(--bg-card); color: var(--text-main); border: 1px solid var(--border-color); padding: 10px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 13px; transition: 0.2s; }
.btn-sec:hover { background-color: #27272a; }
.btn-sec.danger { color: #ef4444; border-color: rgba(239, 68, 68, 0.3); }
.btn-sec.danger:hover { background-color: rgba(239, 68, 68, 0.1); }
.full-width { width: 100%; }

.top-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.top-header h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.custo-badge { background: rgba(204, 255, 0, 0.05); border: 1px solid rgba(204, 255, 0, 0.2); padding: 10px 15px; border-radius: 8px; display: flex; align-items: center; gap: 10px; }
.custo-badge span { font-size: 11px; color: var(--text-muted); font-weight: 600;}
.custo-badge strong { color: var(--neon-green); font-size: 14px;}

.form-container { background-color: var(--bg-panel); border-radius: 16px; padding: 30px; border: 1px solid var(--border-color); }
.form-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.form-header h3 { font-size: 16px; font-weight: 700; color: #fff; }

.aviso-box { background: linear-gradient(90deg, rgba(204,255,0,0.05) 0%, rgba(204,255,0,0) 100%); border: 1px solid rgba(204, 255, 0, 0.15); border-left: 4px solid var(--neon-green); border-radius: 8px; padding: 16px 20px; margin-bottom: 25px; }
.aviso-box strong { color: var(--neon-green); font-size: 12px; display: block; margin-bottom: 5px;}
.aviso-box p { font-size: 14px; color: #d4d4d8; }

/* TABS */
.tabs { display: flex; gap: 10px; margin-bottom: 25px; overflow-x: auto; padding-bottom: 5px; }
.tab-btn { background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-muted); padding: 12px 20px; border-radius: 30px; cursor: pointer; font-size: 12px; font-weight: 700; white-space: nowrap; transition: 0.3s; }
.tab-btn.active { background: rgba(204, 255, 0, 0.1); border-color: var(--neon-green); color: var(--neon-green); }
.step-content { display: none; }
.step-content.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* INPUTS */
.form-row { display: flex; gap: 20px; }
.form-group { flex: 1; margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #e4e4e7; margin-bottom: 10px; }
.form-group input, .form-group select { width: 100%; background-color: var(--bg-dark); border: 1px solid var(--border-color); color: var(--text-main); padding: 14px; border-radius: 8px; outline: none; font-size: 14px; transition: 0.2s; }
.form-group input:focus, .form-group select:focus { border-color: var(--neon-green); box-shadow: 0 0 0 2px rgba(204, 255, 0, 0.1); }

/* RADIO CARDS */
.radio-group { display: flex; gap: 15px; }
.radio-card { flex: 1; background-color: var(--bg-dark); border: 1px solid var(--border-color); border-radius: 10px; padding: 16px; cursor: pointer; position: relative; transition: 0.2s; }
.radio-card:hover { border-color: #52525b; }
.radio-card.active { border-color: var(--neon-green); background-color: rgba(204, 255, 0, 0.03); }
.radio-card input { display: none; }
.radio-card strong { display: block; margin-bottom: 6px; font-size: 14px; color: #fff;}
.radio-card span { font-size: 12px; color: var(--text-muted); line-height: 1.4; display: block;}

.form-actions { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border-color); }

/* PREVIEW */
.preview-panel h3 { font-size: 15px; font-weight: 700; margin-bottom: 20px; letter-spacing: -0.5px;}
.preview-box { background-color: var(--bg-dark); border: 1px dashed #3f3f46; border-radius: 12px; height: 450px; display: flex; align-items: center; justify-content: center; text-align: center; }
.empty-state i { font-size: 48px; color: rgba(204, 255, 0, 0.5); margin-bottom: 15px; }
.empty-state p { font-weight: 700; font-size: 14px; margin-bottom: 5px; color: #fff;}
.empty-state span { font-size: 12px; color: var(--text-muted); }

/* =========================================
   MOBILE RESPONSIVE (Celular / Tablets)
========================================= */
@media (max-width: 1024px) {
    .layout { flex-direction: column; overflow-y: auto; }
    
    /* Ativa o cabeçalho mobile com o menu sanduíche */
    .mobile-header { display: flex; }

    /* Transforma a sidebar em um menu lateral off-canvas */
    .sidebar {
        position: fixed;
        top: 0;
        left: -300px; /* Oculta pra esquerda */
        height: 100vh;
        width: 280px;
        transition: left 0.3s ease;
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    }
    .sidebar.open { left: 0; }

    /* Ajusta a área central e preview */
    .content { padding: 20px; overflow-y: visible; }
    .preview-panel { 
        width: 100%; 
        border-left: none; 
        border-top: 1px solid var(--border-color); 
        padding: 20px;
    }

    /* Quebra os elementos que ficam lado a lado no PC para ficar um embaixo do outro no celular */
    .top-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .form-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .form-row { flex-direction: column; gap: 0; }
    .radio-group { flex-direction: column; }
    
    .tabs { padding-bottom: 10px; }
}