/*
* DAM - Estilo "Luxo Clean" (Branco Puro, Preto e Dourado)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* --- PALETA LUXO CLEAN --- */
    /* Dourado Elegante (Para os detalhes e brilho) */
    --primary: #D4AF37;       
    --primary-dark: #B8962E;  
    
    /* Chumbo / Quase Preto (Para contrastes) */
    --accent: #2B2B2B;        
    --accent-hover: #111111;  
    
    /* Fundos: 100% Branco Puro */
    --bg-main: #FFFFFF;       
    --bg-panel: #FFFFFF;      
    
    /* Texto: Preto Forte para leitura perfeita */
    --text-dark: #000000;     
    --text-muted: #444444;    
    
    /* Sombras Elegantes (Leves para não sujar o fundo branco) */
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-strong: 0 12px 28px rgba(212, 175, 55, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    height: 100vh;
    overflow: hidden; 
}

/* Layout Principal */
.app-layout { 
    display: flex; 
    height: 100vh; 
    width: 100vw;
}

/* Sidebar (Menu Lateral no Desktop) */
.sidebar {
    width: 280px;
    background: var(--bg-panel);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 15px rgba(0,0,0,0.03);
    z-index: 10;
}

.sidebar-logo {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 2.5rem;
}
.sidebar-logo-icon { 
    font-size: 2.5rem; 
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.sidebar-logo-text h1 { font-size: 1.8rem; font-weight: 900; color: #000000; letter-spacing: -0.5px; }
.sidebar-logo-text p { font-size: 0.75rem; color: var(--primary-dark); font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; }

.sidebar-nav { list-style: none; }

/* O MENU FICA BEM PRETO AQUI */
.nav-link {
    display: flex; align-items: center; gap: 1rem; padding: 1rem;
    text-decoration: none; 
    color: #000000; /* PRETO PURO */
    border-radius: 12px;
    transition: all 0.3s ease; 
    font-weight: 700; /* LETRA MAIS FORTE */
    margin-bottom: 0.5rem;
}
.nav-link i { font-size: 1.2rem; width: 24px; text-align: center; }

.nav-link:hover { 
    background: rgba(212, 175, 55, 0.1); 
    color: var(--primary-dark); 
    transform: translateX(5px);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #000000; /* Texto preto no fundo dourado */
    box-shadow: var(--shadow-soft);
}
.nav-link.active:hover { transform: none; }

.nav-link.danger { color: #D63031; }
.nav-link.danger:hover { background: rgba(214, 48, 49, 0.08); color: #D63031; }

.sidebar-footer { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid #EEEEEE; }
.user-info { display: flex; align-items: center; gap: 1rem; }
.user-avatar {
    width: 45px; height: 45px; border-radius: 50%;
    background: #000000; color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 2px solid var(--primary);
}
.user-details h4 { font-size: 0.95rem; color: #000000; font-weight: 700; }
.user-details p { font-size: 0.8rem; color: var(--text-muted); }

/* Conteúdo Principal */
.main-content {
    flex: 1; padding: 2.5rem; overflow-y: auto;
    background: var(--bg-main);
    padding-bottom: 100px; 
}

.page-header { margin-bottom: 2.5rem; text-align: center; }
.page-header h1 { font-size: 2.2rem; color: #000000; font-weight: 900; letter-spacing: -1px; }
.page-subtitle { color: var(--text-muted); font-weight: 500; font-size: 1.1rem; margin-top: 0.5rem; }

/* Roda */
.wheel-stage { margin: 2.5rem auto; position: relative; width: fit-content; }
#wheel {
    border-radius: 50%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); 
    border: 5px solid white;
}

/* Botões Fortes */
.btn {
    padding: 1rem 2.5rem; border: none; border-radius: 50px;
    font-size: 1.1rem; cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem;
    font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
}
.btn:active { transform: scale(0.96); }

/* Botão Principal (Dourado com texto preto) */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); 
    color: #000000;
    box-shadow: var(--shadow-strong);
}
.btn-primary:hover { box-shadow: 0 15px 35px rgba(212, 175, 55, 0.4); transform: translateY(-3px); }

/* Botão Secundário (Preto com texto dourado) */
.btn-navy { background: #111111; color: var(--primary); box-shadow: var(--shadow-soft); }
.btn-navy:hover { background: #000000; transform: translateY(-3px); }

/* Cards do App */
.card {
    background: var(--bg-panel); padding: 2.5rem; border-radius: 24px;
    box-shadow: var(--shadow-soft); border: 1px solid #F0F0F0;
}

.message-box {
    font-size: 1.6rem; color: #000000; text-align: center;
    font-weight: 700; margin-bottom: 2rem; line-height: 1.4; font-style: italic;
}

.action-card {
    background: linear-gradient(to right, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.02));
    border-left: 5px solid var(--primary);
    padding: 1.8rem; border-radius: 0 16px 16px 0; margin-bottom: 2rem;
}

.action-title { color: var(--primary-dark); font-weight: 800; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.8rem; }

/* Formulário App */
.form-control, select, textarea {
    width: 100%; padding: 1.2rem; border: 2px solid #E5E5E5;
    border-radius: 16px; margin-bottom: 1.2rem; color: #000000;
    font-size: 1rem; font-family: 'Inter', sans-serif;
    transition: all 0.3s ease; background: #FFFFFF;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15); }

/* --- MAGIA DO CELULAR: BARRA INFERIOR --- */
@media (max-width: 768px) {
    .app-layout { flex-direction: column; }
    
    .sidebar-logo, .sidebar-footer { display: none; }
    
    .sidebar { 
        position: fixed; bottom: 0; left: 0; right: 0; 
        width: 100%; height: 75px; padding: 0; 
        flex-direction: row; justify-content: center;
        border-top: 1px solid #EEEEEE; box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
        z-index: 1000; padding-bottom: max(0px, env(safe-area-inset-bottom)); 
    }
    
    nav { width: 100%; }
    .sidebar-nav { 
        display: flex; justify-content: space-around; align-items: center; 
        height: 100%; width: 100%; margin: 0; padding: 0;
    }
    
    .nav-item { margin: 0 !important; padding: 0; flex: 1; }
    
    .nav-link { 
        flex-direction: column; gap: 4px; padding: 10px 0; border-radius: 0;
        margin: 0; font-size: 0.7rem; justify-content: center; height: 100%; border: none !important;
    }
    .nav-link i { font-size: 1.4rem; }
    .nav-link span { display: block; font-weight: 700; }
    
    .nav-link:hover { transform: none; background: transparent; }
    .nav-link.active { background: transparent; color: var(--primary-dark); box-shadow: none; border-top: 3px solid var(--primary) !important; }
    
    .main-content { padding: 1.5rem 1rem 100px 1rem; }
    .page-header h1 { font-size: 1.8rem; }
    #wheel { width: 100%; max-width: 320px; height: auto; border-width: 3px; }
    .card { padding: 1.5rem; }
}