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

:root {
    --bg-body: #10121B;
    --bg-sidebar: #161821;
    --bg-card: #1F222C;
    --bg-input: #15171F;
    --accent: #5865F2; /* Discord Blurple */
    --accent-hover: #4752C4;
    --text-main: #FFFFFF;
    --text-muted: #A3A6AA;
    --border: #2B2D31;
    --success: #2ECC71;
}

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

/* Proteção contra imagens gigantes */
img { max-width: 100%; height: auto; }

body { background-color: var(--bg-body); color: var(--text-main); display: flex; min-height: 100vh; }

/* --- SIDEBAR --- */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100%;
    top: 0; left: 0;
    z-index: 100;
}

.brand {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand img { width: 32px; height: 32px; border-radius: 50%; }

.menu-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 20px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.menu-item:hover { background-color: rgba(255, 255, 255, 0.05); color: white; }
.menu-item.active { background-color: var(--accent); color: white; }
.menu-item i { width: 20px; text-align: center; }

/* --- CONTEÚDO PRINCIPAL --- */
.main-content {
    margin-left: 260px;
    flex: 1;
    padding: 40px;
    width: calc(100% - 260px);
    position: relative;
    padding-bottom: 100px;
}

.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.header h1 { font-size: 24px; color: white; }
.user-profile { display: flex; align-items: center; gap: 10px; }
.user-profile img { width: 35px; height: 35px; border-radius: 50%; border: 2px solid var(--accent); }

/* --- CARDS E INPUTS --- */
.card {
    background-color: var(--bg-card);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.form-group { margin-bottom: 20px; }

label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); }

input[type="text"], textarea, select {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
.input-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }

/* --- BOTÃO SALVAR --- */
.save-bar {
    position: fixed; bottom: 20px; right: 20px;
    background-color: var(--bg-card);
    padding: 15px 25px; border-radius: 10px;
    border: 1px solid var(--border);
    display: flex; align-items: center; gap: 15px;
    z-index: 200;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease-out;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.btn-save {
    background-color: var(--success); color: white; border: none;
    padding: 10px 25px; border-radius: 6px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; gap: 8px;
    transition: 0.2s;
}
.btn-save:hover { background-color: #27ae60; transform: translateY(-2px); }

/* --- TELA DE LOGIN (ATUALIZADA: FUNDO VERMELHO ESCURO) --- */
.login-wrapper {
    display: flex; height: 100vh; width: 100%;
    /* Alteração Aqui: Gradiente Vermelho Escuro */
    background: radial-gradient(circle at center, #4a0000 0%, #1a0505 100%);
    position: relative;
}
.login-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    /* Reduzimos a opacidade para o vermelho aparecer mais */
    background: rgba(0, 0, 0, 0.4); 
    display: flex; align-items: center; justify-content: center;
}
.login-box {
    background: rgba(31, 34, 44, 0.95);
    padding: 50px; border-radius: 20px;
    border: 1px solid rgba(255, 0, 0, 0.2); /* Borda levemente vermelha */
    text-align: center; width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    animation: floatUp 0.8s ease-out;
}
@keyframes floatUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.login-logo { width: 100px; height: 100px; border-radius: 50%; border: 3px solid #ff4444; margin-bottom: 20px; box-shadow: 0 0 20px rgba(255, 0, 0, 0.4); }

.btn-login {
    background: #5865F2; color: white; text-decoration: none;
    padding: 15px 30px; border-radius: 50px; font-weight: bold; font-size: 16px;
    display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
    transition: 0.3s; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.btn-login:hover { transform: scale(1.05); background: #4752C4; }

/* --- TABELAS --- */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 15px; color: var(--text-muted); border-bottom: 2px solid var(--border); }
td { padding: 15px; border-bottom: 1px solid var(--border); color: white; }
tr:hover td { background: rgba(255,255,255,0.02); }
.status-badge { padding: 5px 10px; border-radius: 20px; font-size: 11px; font-weight: bold; text-transform: uppercase; }
.status-approved { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.status-pending { background: rgba(241, 196, 15, 0.2); color: #f1c40f; }

/* --- CARDS DE ESTATÍSTICA --- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--bg-card); padding: 20px; border-radius: 12px; border: 1px solid var(--border); display: flex; align-items: center; gap: 20px; }
.stat-icon { width: 50px; height: 50px; border-radius: 10px; background: rgba(88, 101, 242, 0.1); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.stat-info h4 { color: var(--text-muted); font-size: 12px; text-transform: uppercase; margin-bottom: 5px; }
.stat-info p { font-size: 24px; font-weight: bold; color: white; }