/* ==================== DASHBOARD MOBILE MINIMALISTA PREMIUM ==================== */

/* Só ativa em mobile */
@media (max-width: 768px) {

/* Container principal mobile */
.mobile-dashboard-container {
    padding: 0;
    margin: 0;
}

/* Header Mobile Ultra Clean */
.mobile-welcome-section {
    background: var(--white);
    padding: 24px 20px 32px;
    border-bottom: 1px solid var(--gray-light);
}

.mobile-welcome-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-welcome-subtitle {
    font-size: 15px;
    color: var(--gray-medium);
    font-weight: 400;
    line-height: 1.5;
}

/* Card Hero - Saldo Principal */
.mobile-hero-card {
    background: linear-gradient(135deg, #0066CC 0%, #4A90E2 100%);
    border-radius: 24px;
    padding: 32px 24px;
    margin: 20px;
    box-shadow: 0 8px 24px rgba(0, 102, 204, 0.2);
    position: relative;
    overflow: hidden;
}

.mobile-hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.mobile-hero-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-hero-value {
    font-size: 48px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1;
}

.mobile-hero-trend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--white);
    font-weight: 600;
}

/* Barra de Progresso do Orçamento */
.mobile-budget-progress {
    margin-top: 24px;
}

.mobile-budget-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.mobile-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.mobile-progress-fill {
    height: 100%;
    background: var(--white);
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Mini Cards - Renda e Gastos */
.mobile-mini-stats {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.mobile-mini-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-mini-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-mini-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
}

/* Grid Compacto 2x2 */
.mobile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 20px;
    margin-top: 24px;
}

.mobile-stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 20px 16px;
    border: 1px solid var(--gray-light);
    transition: var(--transition);
}

.mobile-stat-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.mobile-stat-icon.red {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: #DC2626;
}

.mobile-stat-icon.orange {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #F59E0B;
}

.mobile-stat-icon.green {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #059669;
}

.mobile-stat-icon.blue {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: #2563EB;
}

.mobile-stat-label {
    font-size: 13px;
    color: var(--gray-medium);
    margin-bottom: 6px;
    font-weight: 500;
}

.mobile-stat-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 4px;
}

.mobile-stat-detail {
    font-size: 12px;
    color: var(--gray-medium);
}

/* Insight IA */
.mobile-insight-card {
    background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
    border-left: 4px solid #F59E0B;
    border-radius: 16px;
    padding: 20px;
    margin: 24px 20px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
}

.mobile-insight-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.mobile-insight-icon {
    width: 32px;
    height: 32px;
    background: #F59E0B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--white);
}

.mobile-insight-badge {
    font-size: 11px;
    font-weight: 700;
    color: #92400E;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-insight-text {
    font-size: 14px;
    color: #78350F;
    line-height: 1.6;
    font-weight: 500;
}

.mobile-insight-highlight {
    font-weight: 700;
    color: #92400E;
}

/* Botões de Ação */
.mobile-action-buttons {
    padding: 0 20px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-btn-primary {
    background: linear-gradient(135deg, #0066CC, #4A90E2);
    color: var(--white);
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    transition: var(--transition);
}

.mobile-btn-primary:active {
    transform: scale(0.98);
}

.mobile-btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--gray-light);
    padding: 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.mobile-btn-secondary:active {
    background: var(--gray-lighter);
}

/* Esconder dashboard desktop quando em mobile */
.dashboard-cards,
.dashboard-cards-progress,
.monthly-insight {
    display: none !important;
}

/* Animações */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-hero-card {
    animation: slideInUp 0.6s ease-out;
}

.mobile-stats-grid {
    animation: slideInUp 0.8s ease-out;
}

.mobile-insight-card {
    animation: slideInUp 1s ease-out;
}

} /* Fim do media query mobile */

/* Esconder dashboard mobile no desktop */
@media (min-width: 769px) {
    .mobile-dashboard-container {
        display: none !important;
    }
}

/* Esconder desktop dashboard no mobile */
@media (max-width: 768px) {
    .desktop-dashboard-content {
        display: none !important;
    }
    .topbar-glass {
        display: none !important;
    }
}