@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --sidebar-width: 260px;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-body: #f3f4f6;
    --text-main: #111827;
    --border: #e5e7eb;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

/* =========================================
   1. ESTILOS DO PAINEL (DASHBOARD)
   ========================================= */

/* Sidebar */
.sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-width); background: #0f172a; color: white; z-index: 1000; display: flex; flex-direction: column; box-shadow: 4px 0 15px rgba(0,0,0,0.1); }
.brand { height: 70px; display: flex; align-items: center; padding: 0 25px; font-size: 18px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.1); color: white; letter-spacing: -0.5px; }
.brand i { color: var(--primary); margin-right: 10px; }
.menu { padding: 20px 15px; flex: 1; }
.menu a { display: flex; align-items: center; padding: 12px 15px; color: #94a3b8; text-decoration: none; border-radius: 8px; margin-bottom: 5px; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.menu a:hover, .menu a.active { background: rgba(255,255,255,0.1); color: white; transform: translateX(5px); }
.menu a i { width: 25px; font-size: 16px; }
.user-box { padding: 20px; background: rgba(0,0,0,0.3); border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; align-items: center; }
.user-name { font-size: 13px; font-weight: 600; color: white; display: block; }
.user-plan { font-size: 11px; color: #64748b; }
.btn-logout { color: #ef4444; font-size: 16px; transition: 0.2s; }
.btn-logout:hover { color: #ff6b6b; transform: scale(1.1); }

/* Área Principal */
.main-content { margin-left: var(--sidebar-width); padding: 30px; width: calc(100% - var(--sidebar-width)); min-height: 100vh; }

/* Grid e Cartões */
.card { background: white; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); border: 1px solid var(--border); padding: 25px; margin-bottom: 30px; }
.card-header { margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.card-header h3 { font-size: 16px; font-weight: 600; color: #1e293b; margin: 0; }

/* --- CORREÇÃO DOS INPUTS DO DASHBOARD --- */
/* Força os inputs do painel a serem grandes e bonitos */
.card input, .card select {
    display: block; /* Garante que pule linha */
    width: 100%;    /* Ocupa todo o espaço disponível */
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    transition: 0.2s;
    margin-bottom: 20px; /* Espaço embaixo */
    font-family: 'Inter', sans-serif;
}
.card input:focus, .card select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }
.card label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 8px; }

/* Grid de Inputs (slug e senha lado a lado) */
.input-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    width: 100%;
}

/* Botão Principal */
button.btn-primary {
    display: block;
    width: 100%;
    background: var(--primary);
    color: white;
    font-weight: 600;
    padding: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}
button.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); }

/* Tabela */
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 12px 15px; font-size: 11px; text-transform: uppercase; color: #64748b; font-weight: 700; border-bottom: 2px solid var(--border); background: #f8fafc; }
td { padding: 15px; border-bottom: 1px solid var(--border); font-size: 14px; color: #334155; vertical-align: middle; }
tr:hover td { background: #f8fafc; }

/* Tag de Projeto e Links */
.badge-projeto { font-size: 10px; background: #e2e8f0; color: #475569; padding: 3px 8px; border-radius: 12px; margin-left: 8px; font-weight: 600; white-space: nowrap; }
.link-main { color: var(--primary); font-weight: 600; text-decoration: none; }
.link-dest { font-size: 12px; color: #94a3b8; display: block; max-width: 350px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }

.actions { display: flex; gap: 8px; justify-content: flex-end; }
.btn-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: white; border-radius: 6px; color: #64748b; text-decoration: none; transition: 0.2s; cursor: pointer; }
.btn-icon:hover { border-color: var(--primary); color: var(--primary); background: #f1f5f9; }
.btn-icon.del:hover { border-color: #ef4444; color: #ef4444; background: #fef2f2; }

/* Modal */
#modalQR { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.modal-box { background: white; width: 400px; padding: 30px; border-radius: 16px; text-align: center; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.copy-row { display: flex; margin-bottom: 15px; }
.copy-row input { margin: 0; border-radius: 6px 0 0 6px; border-right: none; background: #f8fafc; }
.copy-row button { width: 50px; border-radius: 0 6px 6px 0; background: #e2e8f0; border: 1px solid #cbd5e1; cursor: pointer; color: #334155; }
.copy-row button:hover { background: #cbd5e1; }


/* =========================================
   2. ESTILOS DO LOGIN (DARK MODE / SHORT.IO)
   ========================================= */

@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Fundo da página de login */
body.auth-body {
    display: flex; align-items: center; justify-content: center;
    background: #0a0a0a; /* Preto */
    height: 100vh;
    padding: 20px;
    overflow: hidden;
}

.auth-container {
    display: flex;
    width: 900px; max-width: 100%;
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.auth-form-side { flex: 1; padding: 50px 40px; background: #1a1a1a; color: white; text-align: left; }
.auth-form-side h2 { color: white; font-size: 24px; font-weight: 700; margin-bottom: 30px; }
.auth-form-side label { color: #a3a3a3; font-size: 14px; margin-bottom: 8px; display: block; }

/* Inputs ESPECÍFICOS do Login (Escuros) */
.auth-form-side input {
    background: #262626;
    border: 1px solid #404040;
    color: white;
    padding: 14px;
    font-size: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    width: 100%;
    display: block;
    outline: none;
    transition: 0.2s;
}
.auth-form-side input:focus { border-color: var(--primary); background: #303030; }

.auth-btn { width: 100%; padding: 14px; background: var(--primary); color: white; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 16px; transition: 0.3s; }
.auth-btn:hover { background: var(--primary-hover); }

.auth-footer { margin-top: 25px; font-size: 14px; color: #a3a3a3; text-align: center; }
.auth-footer a { color: var(--primary); text-decoration: none; font-weight: 700; }
.auth-footer a:hover { color: var(--primary-hover); text-decoration: underline; }

.erro-msg { background: #3f1d1d; border: 1px solid #7f2a2a; color: #fca5a5; padding: 12px; border-radius: 8px; font-size: 14px; margin-bottom: 25px; }

/* Lado Direito do Login */
.auth-info-side { flex: 1; padding: 50px 40px; background: #222; color: white; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid rgba(255,255,255,0.05); }
.auth-info-side h3 { font-size: 22px; margin-bottom: 15px; color: white; }
.auth-info-side p { color: #a3a3a3; line-height: 1.6; margin-bottom: 30px; }
.info-graphic { width: 100%; height: 200px; background: #303030; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #a3a3a3; font-size: 14px; position: relative; }
.info-graphic::after { content: ''; position: absolute; bottom: 20px; left: 20px; width: 40px; height: 60px; background: var(--primary); opacity: 0.3; }
.info-graphic::before { content: ''; position: absolute; bottom: 20px; left: 70px; width: 40px; height: 100px; background: var(--primary); opacity: 0.6; }
.info-graphic .bar-3 { position: absolute; bottom: 20px; left: 120px; width: 40px; height: 140px; background: var(--primary); }

/* Mobile */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; width: 100%; padding: 20px; }
    .input-row { grid-template-columns: 1fr; }
    .auth-container { flex-direction: column; width: 100%; }
    .auth-info-side { display: none; }
    .auth-form-side { padding: 40px 25px; }
}