/* ==========================================
   💎 PANDDA LABS - DESIGN SYSTEM 2.0
   ========================================== */

:root {
    /* Paleta Light - Focada em Claridade */
    --bg-body: #F1F5F9;         /* Slate 100 */
    --bg-card: #FFFFFF;
    --text-main: #0F172A;       /* Slate 900 */
    --text-muted: #64748B;      /* Slate 500 */
    --border: #E2E8F0;          /* Slate 200 */
    
    /* Cores de Ação e Status */
    --primary: #2563EB;         /* Azul Elétrico */
    --primary-hover: #1D4ED8;
    --accent: #7C3AED;          /* Roxo para Suporte */
    --success: #10B981;         /* Esmeralda */
    --warning: #F59E0B;         /* Amber */
    --danger: #EF4444;          /* Rose */
    
    --font-base: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Modo Escuro (Dark Mode) - Sem preto puro para evitar fadiga */
html.dark {
    --bg-body: #0F172A;         /* Slate 900 */
    --bg-card: #1E293B;         /* Slate 800 */
    --text-main: #F8FAFC;       /* Slate 50 */
    --text-muted: #94A3B8;      /* Slate 400 */
    --border: #334155;          /* Slate 700 */
    
    --primary: #3B82F6;         /* Azul mais vibrante no escuro */
}

/* ==========================================
   RESET & FUNDAMENTOS
   ========================================== */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    font-family: var(--font-base);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}

/* 📱 INPUTS PREMIUM - Foco em Legibilidade */
input, select, textarea {
    background: var(--bg-card) !important;
    border: 2px solid var(--border) !important;
    color: var(--text-main) !important;
    padding: 0.8rem 1.2rem !important;
    border-radius: 1rem !important;
    width: 100% !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease;
}

input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

/* ==========================================
   ESTRUTURA DO DASHBOARD (SIDEBAR & MAIN)
   ========================================== */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 2.5rem 1.5rem;
    position: fixed;
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content {
    margin-left: 280px;
    padding: 3.5rem;
    width: 100%;
    max-width: 1400px;
}

/* 📦 CARDS E COMPONENTES */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

/* 🔘 BOTÕES DE AÇÃO */
.btn-primary {
    background: var(--primary);
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1.2rem;
    border-radius: 1.25rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 💳 MÉTODOS DE PAGAMENTO */
.method-btn {
    border: 2px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.2s ease;
}

.method-btn:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.method-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* 🆘 SUPORTE & LINKS DE AJUDA */
.btn-support-option {
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.btn-support-option:hover {
    background: var(--primary);
    transform: translateX(5px);
}

.btn-help-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--bg-body);
    border-radius: 1rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.9rem;
}

/* 📋 ACORDÉON & ACESSOS */
.access-item {
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    overflow: hidden;
}

.access-header {
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.access-content {
    display: none;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.02);
}

.access-item.active .access-content {
    display: block;
}

.access-item.active .fa-chevron-down {
    transform: rotate(180deg);
}

/* 🎈 TOOLTIP */
.tooltip {
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.2s ease;
    pointer-events: none;
}

.tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 📱 RESPONSIVIDADE */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 20px 0 50px rgba(0,0,0,0.2);
    }
    
    .main-content {
        margin-left: 0;
        padding: 1.5rem;
        padding-top: 6rem;
    }
}