/* =============================================================================
   TABS NAVIGATION SYSTEM - OPÇÃO 1 + OPÇÃO 2
   Sistema de Tabs na Sidebar + Dashboard ROI na Área Principal
   ============================================================================= */

/* ===== TABS NAVIGATION ===== */
.sidebar-tabs {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 4px;
    margin: 15px;
    margin-top: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 14px;  /* Ajustado */
    border-radius: 8px;
    font-size: 0.8125rem;  /* 13px */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
}

.tab-btn i {
    font-size: 15px;  /* Ajustado */
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(241, 102, 31, 0.3);
}

/* Tab Content Areas */
.tab-content {
    display: none;
    animation: fadeInTab 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== DASHBOARD ROI NA ÁREA PRINCIPAL ===== */
.main-dashboard {
    background: linear-gradient(135deg, rgba(0, 176, 79, 0.05) 0%, rgba(0, 176, 79, 0.02) 100%);
    border-bottom: 1px solid var(--border-primary);
    padding: 20px 24px;
    margin-bottom: 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-title h2 {
    font-size: 1.375rem;  /* 22px */
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.625rem;  /* 10px */
    line-height: 1.3;
}

.dashboard-title h2 i {
    color: var(--primary-color);
}

.dashboard-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 5px 0 0 0;
}

.btn-refresh-dashboard {
    background: white;
    border: 1px solid var(--border-primary);
    color: var(--primary-color);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-refresh-dashboard:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 176, 79, 0.2);
}

/* ROI Dashboard Main Area */
.roi-dashboard-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 1400px) {
    .roi-dashboard-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .roi-dashboard-main {
        grid-template-columns: 1fr;
    }
}

/* ROI Cards in Main Area */
.roi-card-main {
    background: white;
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.roi-card-main:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 176, 79, 0.15);
    transform: translateY(-2px);
}

/* ROI Card Borders */
.roi-card-main.ofertas {
    border-left: 4px solid #FFD700;
}

.roi-card-main.alertas {
    border-left: 4px solid #3B82F6;
}

.roi-card-main.tempo {
    border-left: 4px solid #8B5CF6;
}

/* ROI Icon */
.roi-icon {
    font-size: 32px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 176, 79, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.roi-card-main.ofertas .roi-icon {
    background: rgba(255, 215, 0, 0.15);
}

.roi-card-main.alertas .roi-icon {
    background: rgba(59, 130, 246, 0.15);
}

.roi-card-main.tempo .roi-icon {
    background: rgba(139, 92, 246, 0.15);
}

/* ROI Content */
.roi-content {
    flex: 1;
}

.roi-header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.roi-label-main {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roi-trend-main {
    font-size: 13px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
}

.roi-trend-main.positive {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.roi-trend-main.negative {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

/* ROI Values */
.roi-value-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.roi-value-main .big {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
}

.roi-value-main .small {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ROI Stats */
.roi-stats-main {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 13px;
}

.stat-item {
    color: var(--text-secondary);
}

.stat-item strong {
    color: var(--text-primary);
    font-weight: 700;
}

.stat-item.money {
    color: var(--primary-color);
    font-weight: 600;
}

.stat-divider {
    color: var(--text-muted);
    opacity: 0.5;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    .sidebar-tabs {
        margin: 10px;
    }
    
    .tab-btn {
        padding: 10px 8px;
        font-size: 11px;
    }
    
    .tab-btn i {
        font-size: 14px;
    }
    
    .main-dashboard {
        padding: 16px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .dashboard-title h2 {
        font-size: 18px;
    }
    
    .roi-dashboard-main {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .roi-card-main {
        padding: 16px;
    }
    
    .roi-icon {
        width: 48px;
        height: 48px;
        font-size: 28px;
    }
    
    .roi-value-main .big {
        font-size: 28px;
    }
}

/* ===== TRANSITIONS AND ANIMATIONS ===== */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-dashboard {
    animation: slideInFromTop 0.4s ease-out;
}

/* ===== ACCESSIBILITY ===== */
.tab-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-refresh-dashboard:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .sidebar-tabs,
    .btn-refresh-dashboard {
        display: none;
    }
    
    .main-dashboard {
        page-break-inside: avoid;
    }
}


