/* === DASHBOARD FINANCEIRO === */
.financial-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* RESUMO FINANCEIRO */
.financial-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 8px;
}

.summary-card {
  background: linear-gradient(145deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

.summary-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.summary-card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.summary-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--brand);
}

.summary-card-content {
  flex: 1;
  min-width: 0;
}

.summary-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

.summary-card-value.positive {
  color: #10b981;
}

.summary-card-value.negative {
  color: #ef4444;
}

.summary-card-label {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.summary-card-trend {
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.summary-card-trend.positive {
  color: #10b981;
}

.summary-card-trend.negative {
  color: #ef4444;
}

.summary-card-trend.warning {
  color: #f59e0b;
}

/* AÇÕES RÁPIDAS FINANCEIRAS */
.quick-actions-section {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.quick-action-btn {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.quick-action-btn:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 106, 0, 0.15);
}

.quick-action-icon {
  width: 24px;
  height: 24px;
  color: var(--brand);
}

.quick-action-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  color: var(--text);
}

/* VISÃO DO DIA */
.today-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  height: fit-content;
}

.today-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.today-title {
  font-size: 1.125rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.today-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.today-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.today-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.today-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.today-label {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

.today-value {
  font-weight: 600;
  font-size: 0.875rem;
  font-family: var(--font-heading);
}

.today-value.positive {
  color: #10b981;
}

.today-value.negative {
  color: #ef4444;
}

/* VENCIMENTOS */
.vencimentos-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  height: fit-content;
}

.vencimentos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.vencimentos-title {
  font-size: 1.125rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.vencimentos-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.vencimentos-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.vencimento-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.vencimento-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.vencimento-item.urgente {
  border-left: 4px solid #ef4444;
}

.vencimento-item.proximo {
  border-left: 4px solid #f59e0b;
}

.vencimento-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vencimento-details {
  flex: 1;
  min-width: 0;
}

.vencimento-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vencimento-meta {
  color: var(--muted);
  font-size: 0.75rem;
}

.vencimento-valor {
  font-weight: 700;
  font-size: 0.875rem;
  color: #ef4444;
  flex-shrink: 0;
}

/* TRANSAÇÕES */
.transactions-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  grid-column: 1 / -1;
}

.transactions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.transactions-title {
  font-size: 1.125rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.transactions-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
}

.transactions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.transaction-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.transaction-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.transaction-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.transaction-details {
  flex: 1;
  min-width: 0;
}

.transaction-title {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transaction-meta {
  color: var(--muted);
  font-size: 0.75rem;
}

.transaction-amount {
  font-weight: 700;
  font-size: 0.875rem;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.transaction-amount.positive {
  color: #10b981;
}

.transaction-amount.negative {
  color: #ef4444;
}

/* CATEGORIAS */
.categories-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}

.category-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
}

.category-header {
  margin-bottom: 20px;
}

.category-title {
  font-size: 1.125rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.category-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.category-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.category-value {
  font-weight: 600;
  font-size: 0.875rem;
  font-family: var(--font-heading);
}

.category-value.positive {
  color: #10b981;
}

.category-value.negative {
  color: #ef4444;
}

/* STATES VISUAIS */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.empty-state p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* === TABELAS FINANCEIRAS === */
.table-container {
    overflow-x: auto;
}

.financial-table {
    width: 100%;
    border-collapse: collapse;
}

.financial-table th,
.financial-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.financial-table th {
    background: rgba(255,255,255,0.05);
    font-weight: 600;
}

.financial-table tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.recebido,
.status-badge.pago {
    background: rgba(33, 192, 122, 0.15);
    color: #21c07a;
}

.status-badge.pendente {
    background: rgba(255, 167, 38, 0.15);
    color: #ffa726;
}

.status-badge.atrasado {
    background: rgba(255, 77, 77, 0.15);
    color: #ff4d4d;
}

.no-data {
    color: var(--muted);
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* FILTROS ESTILIZADOS - VISUAL PROFISSIONAL */
.filters-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 15, 15, 0.5);
    backdrop-filter: blur(10px);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.filters-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filters-icon {
    color: #666;
}

.filters-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #e0e0e0;
}

.btn-filters-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-filters-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-filters-toggle.active svg {
    transform: rotate(180deg);
}

.filters-container {
    padding: 24px;
    display: none;
}

.filters-form {
    width: 100%;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #b0b0b0;
}

.filter-label svg {
    opacity: 0.7;
}

.period-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.period-btn {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #b0b0b0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 80px;
    text-align: center;
}

.period-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.period-btn.active {
    background: rgba(255, 106, 0, 0.1);
    border-color: rgba(255, 106, 0, 0.3);
    color: #ff6a00;
}

.custom-dates {
    display: none;
}

.custom-dates.active {
    display: flex;
    flex-direction: column;
}

.date-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-input-group {
    flex: 1;
}

.date-input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 14px;
}

.date-input:focus {
    outline: none;
    border-color: rgba(255, 106, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.date-separator {
    display: flex;
    align-items: center;
    color: #666;
    padding: 0 8px;
}

.filter-select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 14px;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: rgba(255, 106, 0, 0.3);
}

.filters-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-clear, .btn-apply {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
}

.btn-clear:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-apply {
    background: rgba(255, 106, 0, 0.1);
    border: 1px solid rgba(255, 106, 0, 0.3);
    color: #ff6a00;
}

.btn-apply:hover {
    background: rgba(255, 106, 0, 0.15);
    border-color: rgba(255, 106, 0, 0.4);
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .filters-header {
        padding: 16px 20px;
    }
    
    .filters-container {
        padding: 20px;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .period-buttons {
        gap: 6px;
    }
    
    .period-btn {
        min-width: 70px;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .date-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .date-separator {
        padding: 4px 0;
        transform: rotate(90deg);
    }
    
    .filters-actions {
        flex-direction: column;
    }
    
    .btn-clear, .btn-apply {
        justify-content: center;
    }
}

/* SOLUÇÃO ESPECÍFICA PARA OS FILTROS - TEXTO PRETO */
#filtersForm .filter-select,
#filtersForm .form-select,
#filtersForm .date-input {
    color: #000000 !important;
    background-color: #ffffff !important;
}

#filtersForm .filter-select option,
#filtersForm .form-select option {
    color: #000000 !important;
    background-color: #ffffff !important;
    padding: 10px;
}

#filtersForm .filter-select optgroup,
#filtersForm .form-select optgroup {
    color: #666666 !important;
    background-color: #f8f9fa !important;
    font-weight: 600;
}