/* Hero Section - Sistema Financeiro */
.financeiro-hero-section {
    position: relative;
    margin-bottom: 6rem;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 40%, #cbd5e1 100%);
    animation: fade-in-up 0.8s ease-out;
    animation-delay: 0.4s;
    animation-fill-mode: both;
}

.financeiro-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(1px);
}

.financeiro-hero-section .container {
    position: relative;
    z-index: 1;
}

/* Badge do sistema */
.financeiro-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid #fca5a5;
}

.financeiro-badge i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Título principal */
.financeiro-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .financeiro-title {
        font-size: 3rem;
    }
}

.financeiro-title-highlight {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

/* Descrição */
.financeiro-description {
    font-size: 1.25rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 40rem;
    margin-bottom: 2rem;
}

.financeiro-description strong {
    color: #dc2626;
    font-weight: 600;
}

/* Lista de benefícios */
.financeiro-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.financeiro-benefit {
    display: flex;
    align-items: center;
    color: #475569;
    font-size: 1rem;
}

.financeiro-benefit-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-right: 0.75rem;
}

.financeiro-benefit-dot-1 { background-color: #dc2626; }
.financeiro-benefit-dot-2 { background-color: #ef4444; }
.financeiro-benefit-dot-3 { background-color: #f87171; }
.financeiro-benefit-dot-4 { background-color: #dc2626; }

/* Cards estatísticos */
.financeiro-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .financeiro-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.financeiro-stat-card {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #fca5a5;
    text-align: center;
}

.financeiro-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 0.5rem;
}

@media (min-width: 1024px) {
    .financeiro-stat-number {
        font-size: 3rem;
    }
}

.financeiro-stat-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.financeiro-stat-description {
    color: #64748b;
    line-height: 1.5;
    font-size: 0.95rem;
}

.financeiro-stat-description strong {
    color: #dc2626;
    font-weight: 600;
}

/* Container do mockup */
.financeiro-mockup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

/* Wrapper do mockup */
.financeiro-mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
    transition: all 0.3s ease;
}

.financeiro-mockup-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: 
        0 35px 70px -12px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Tela principal do mockup */
.financeiro-mockup-screen {
    background: #ffffff;
    min-height: 500px;
    position: relative;
}

/* Header do sistema financeiro */
.financeiro-mockup-header {
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 1.5rem;
    color: #1f2937;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    border-radius: 0.75rem;
    margin: 1rem;
}

.financeiro-mockup-title-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.financeiro-mockup-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

.financeiro-title-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.financeiro-title-icon i {
    color: white;
    font-size: 1.25rem;
}

.financeiro-mockup-subtitle {
    color: #6b7280;
    font-size: 1.125rem;
    margin: 0;
    line-height: 1.5;
}

.financeiro-mockup-last-update {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.financeiro-mockup-last-update i {
    color: #9ca3af;
}

.financeiro-mockup-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.financeiro-mockup-btn {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.financeiro-mockup-btn:hover {
    background: #f8fafc;
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Dashboard cards */
.financeiro-dashboard {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    position: relative;
}

.financeiro-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

/* Cards idênticos ao sistema real */
.financeiro-card {
    padding: 2rem;
    color: white;
    border-radius: 0.75rem;
    text-align: left;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slide-up 0.6s ease-out;
    animation-fill-mode: both;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Delays específicos para cada card */
.financeiro-card.gradient-receita {
    animation-delay: 0.1s;
}

.financeiro-card.gradient-despesa {
    animation-delay: 0.2s;
}

.financeiro-card.gradient-saldo {
    animation-delay: 0.3s;
}

.financeiro-card.gradient-estoque {
    animation-delay: 0.4s;
}

.financeiro-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.financeiro-card.gradient-receita {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.financeiro-card.gradient-despesa {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.financeiro-card.gradient-saldo {
    background: linear-gradient(135deg, #52525b 0%, #3f3f46 100%);
}

.financeiro-card.gradient-estoque {
    background: linear-gradient(135deg, #71717a 0%, #52525b 100%);
}

.financeiro-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.financeiro-stats-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.financeiro-stats-icon i {
    color: white;
    font-size: 1.25rem;
}

.financeiro-card-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.badge-text {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.badge-date {
    font-size: 0.75rem;
    opacity: 0.75;
}

.financeiro-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    opacity: 0.95;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.financeiro-card-value {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0.75rem 0 0.5rem 0;
    line-height: 1;
}

.financeiro-card-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.financeiro-card-info i {
    color: white;
}

/* Tabela de lançamentos */
.financeiro-table-section {
    padding: 1.5rem;
}

.financeiro-table-section.card {
    animation: scale-in 0.6s ease-out;
    animation-fill-mode: both;
}

.financeiro-table-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.financeiro-table-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.financeiro-add-btn {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.financeiro-add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

.financeiro-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(145deg, #ffffff, #fefefe);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.financeiro-table th,
.financeiro-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.financeiro-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #475569;
    font-size: 0.875rem;
}

.financeiro-table-row {
    transition: all 0.3s ease;
    position: relative;
}

.financeiro-table-row:hover {
    background: linear-gradient(90deg, #f8fafc, #f1f5f9);
    transform: translateX(2px);
}

.financeiro-table-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.financeiro-table-row:hover::before {
    transform: scaleY(1);
}

.financeiro-table-row:last-child td {
    border-bottom: none;
}

.financeiro-table-type {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.financeiro-table-type.receita {
    background: #dcfce7;
    color: #166534;
}

.financeiro-table-type.despesa {
    background: #fee2e2;
    color: #991b1b;
}

.financeiro-table-value {
    font-weight: 600;
    color: #1e293b;
}

.financeiro-table-value.receita {
    color: #059669;
}

.financeiro-table-value.despesa {
    color: #dc2626;
}

.financeiro-table-description {
    color: #64748b;
    font-size: 0.875rem;
}

.financeiro-table-date {
    color: #64748b;
    font-size: 0.875rem;
}

/* Indicadores de status realistas */
.financeiro-status-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
    animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .financeiro-mockup-wrapper {
        transform: none;
    }
    
    .financeiro-mockup-wrapper:hover {
        transform: scale(1.02);
    }
    
    .financeiro-mockup-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .financeiro-dashboard {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .financeiro-card {
        padding: 1rem;
    }
    
    .financeiro-card-value {
        font-size: 1.25rem;
    }
    
    .financeiro-table-section {
        padding: 1rem;
    }
    
    .financeiro-table {
        font-size: 0.875rem;
    }
    
    .financeiro-table th,
    .financeiro-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .financeiro-dashboard {
        grid-template-columns: 1fr;
    }
    
    .financeiro-table {
        font-size: 0.75rem;
    }
    
    .financeiro-table th,
    .financeiro-table td {
        padding: 0.5rem 0.25rem;
    }
}

/* Animações */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.financeiro-benefit-dot {
    animation: pulse-dot 2s infinite;
}

.financeiro-benefit-dot-1 { animation-delay: 0s; }
.financeiro-benefit-dot-2 { animation-delay: 0.5s; }
.financeiro-benefit-dot-3 { animation-delay: 1s; }
.financeiro-benefit-dot-4 { animation-delay: 1.5s; }