/* ============================================================================
   PÁGINAS ESPECÍFICAS - REPLICANDO VERSÃO REACT/TYPESCRIPT
   ============================================================================ */

/* ============================================================================
   AUTENTICAÇÃO (LOGIN/REGISTER) - Dark Mode
   ============================================================================ */
.auth-container {
  min-height: 100vh;
  background-color: var(--color-gray-50);
  transition: background-color var(--transition-normal);
}

.auth-background {
  background-color: var(--color-gray-50);
  transition: background-color var(--transition-normal);
}

.auth-form-container {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-normal);
}

.auth-form-header h1 {
  color: var(--color-gray-900);
  transition: color var(--transition-normal);
}

.auth-form-header p {
  color: var(--color-gray-600);
  transition: color var(--transition-normal);
}

.auth-back-link {
  color: var(--color-gray-600);
  transition: color var(--transition-normal);
}

.auth-footer p {
  color: var(--color-gray-600);
  transition: color var(--transition-normal);
}

.auth-footer a {
  color: var(--color-primary);
  transition: color var(--transition-normal);
}

.auth-separator span {
  color: var(--color-gray-400);
  background-color: var(--color-gray-50);
  transition: all var(--transition-normal);
}

.auth-separator::before {
  border-color: var(--color-gray-200);
  transition: border-color var(--transition-normal);
}

/* ============================================================================
   DASHBOARD PAGE - Layout Principal Otimizado
   ============================================================================ */
.dashboard-section {
  display: none;
  padding: var(--spacing-6);
  background-color: var(--color-gray-50);
}

.dashboard-section.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

.dashboard-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Page Headers - Estilo uniforme para todas as páginas */
.page-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .page-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.page-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}

.page-header p {
  color: var(--color-gray-600);
  margin: 0.25rem 0 0 0;
  font-size: 1rem;
}

.page-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Stats Cards Grid - Replicando versão antiga */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.stat-card {
  background-color: var(--color-white);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.stat-content {
  flex: 1;
}

.stat-content h3 {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.stat-content .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.stat-content .stat-info {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon i {
  width: 28px;
  height: 28px;
  font-size: 28px;
}

.stat-icon.emerald i {
  color: #10b981 !important;
}

.stat-icon.red i {
  color: #f8285a !important;
}

.stat-icon.blue i {
  color: #3b82f6 !important;
}

.stat-icon.orange i {
  color: #fb923c !important;
}

.stat-icon.green i {
  color: #17c653 !important;
}

.stat-icon.yellow i {
  color: #f6c000 !important;
}

/* ============================================================================
   FILTROS E BUSCA - Padrão para todas as páginas
   ============================================================================ */
.filters-section {
  margin-bottom: 2rem;
}

.filter-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-gray-300);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-700);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  background-color: var(--color-gray-50);
}

.filter-btn.active {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 2.5rem;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
}

.search-box i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-400);
  width: 16px;
  height: 16px;
}

/* ============================================================================
   CONTENT LISTS - Listas de conteúdo padrão
   ============================================================================ */
.content-list {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
}

.list-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-gray-200);
  transition: background-color var(--transition);
}

.list-item:hover {
  background-color: var(--color-gray-50);
}

.list-item:last-child {
  border-bottom: none;
}

.item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.item-icon.income {
  background-color: #ecfdf5;
  color: var(--color-success);
}

.item-icon.expense {
  background-color: #fef2f2;
  color: var(--color-danger);
}

.item-icon.client {
  background-color: #eff6ff;
  color: var(--color-secondary);
}

.item-icon i {
  width: 20px;
  height: 20px;
}

.item-icon.income i {
  color: var(--color-emerald-600);
}

.item-icon.expense i {
  color: var(--color-red-600);
}

.item-icon.client i {
  color: var(--color-blue-600);
}

.item-content {
  flex: 1;
  min-width: 0;
}

.item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-meta {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-amount {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-900);
}

.item-amount.income {
  color: var(--color-success);
}

.item-amount.expense {
  color: var(--color-danger);
}

.item-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  border-radius: var(--radius-md);
  color: var(--color-gray-500);
  cursor: pointer;
  transition: all var(--transition);
}

.action-btn:hover {
  background-color: var(--color-gray-100);
  color: var(--color-gray-700);
}

.action-btn.edit:hover {
  background-color: #eff6ff;
  color: var(--color-secondary);
}

.action-btn.delete:hover {
  background-color: #fef2f2;
  color: var(--color-danger);
}

.action-btn.copy:hover {
  color: var(--color-emerald-600);
  background-color: var(--color-emerald-50);
}

/* Dark theme list items */

/* ============================================================================
   PAGINATION - Paginação padrão
   ============================================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background-color: var(--color-gray-50);
  border-top: 1px solid var(--color-gray-200);
}

.pagination-info {
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-current {
  padding: 0.5rem 0.75rem;
  background-color: var(--color-primary);
  color: var(--color-gray-900);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
}

/* ============================================================================
   EMPTY STATES - Estados vazios
   ============================================================================ */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-icon {
  width: 80px;
  height: 80px;
  background-color: var(--color-gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.empty-icon i {
  font-size: 2rem;
  color: var(--color-gray-400);
}

.empty-state h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--color-gray-600);
  margin: 0;
}

/* ============================================================================
   LOADING STATES - Estados de carregamento
   ============================================================================ */
.loading-state {
  text-align: center;
  padding: 3rem 1rem;
}

.loading-state .spinner {
  margin: 0 auto 1rem;
}

.loading-state p {
  color: var(--color-gray-600);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 768px) {
  .dashboard-section {
    padding: var(--spacing-4);
  }

  .page-header {
    flex-direction: column;
    gap: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-4);
  }

  .filters-section {
    padding: 1rem;
  }

  .search-box {
    max-width: 100%;
  }

  .list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .item-actions {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }

  .pagination {
    flex-direction: column;
    gap: 1rem;
  }

  .pagination-controls {
    order: -1;
  }
}

@media (max-width: 480px) {
  .filter-buttons {
    flex-direction: column;
  }

  .filter-btn {
    text-align: center;
  }

  .item-content {
    width: 100%;
  }

  .item-meta {
    word-break: break-all;
  }
}

/* ============================================================================
   ANIMAÇÕES
   ============================================================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeIn 0.3s ease-out;
}

/* Transition entre páginas */
.page-transition-enter {
  opacity: 0;
  transform: translateY(20px);
}

.page-transition-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease-out;
}

.page-transition-exit {
  opacity: 1;
  transform: translateY(0);
}

.page-transition-exit-active {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease-out;
}

/* ============================================================================
   PAGES & DASHBOARD SECTIONS
   ============================================================================ */

/* Dashboard Sections */
.dashboard-section {
  display: none;
  min-height: calc(100vh - var(--header-height));
  padding: 0;
  background: var(--color-gray-50);
}

.dashboard-section.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

/* Page Headers */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-8);
  padding-bottom: var(--spacing-4);
  border-bottom: 1px solid var(--color-gray-200);
}

.page-header h1 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}

.page-actions {
  display: flex;
  gap: var(--spacing-3);
  align-items: center;
}

/* Dashboard Content */
.dashboard-content {
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-8);
}

.dashboard-header h1 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}

.dashboard-actions {
  display: flex;
  gap: var(--spacing-3);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-6);
  margin-bottom: var(--spacing-8);
}

.stat-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-fast);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card .stat-icon i {
  color: var(--color-primary);
  width: 28px;
  height: 28px;
}

.stat-content h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 var(--spacing-1) 0;
}

.stat-content p {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
  margin: 0 0 var(--spacing-2) 0;
}

.stat-change {
  font-size: var(--font-size-sm);
  font-weight: 600;
  padding: var(--spacing-1) var(--spacing-2);
  border-radius: var(--radius-sm);
}

.stat-change.positive {
  color: var(--color-success);
  background: var(--color-success) / 10;
}

.stat-change.negative {
  color: var(--color-danger);
  background: var(--color-danger) / 10;
}

.stat-change.neutral {
  color: var(--color-gray-600);
  background: var(--color-gray-100);
}

/* Charts Section */
.charts-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-6);
  margin-bottom: var(--spacing-8);
}

.chart-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-4);
}

.chart-header h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0;
}

.chart-filter {
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  padding: var(--spacing-2) var(--spacing-3);
  font-size: var(--font-size-sm);
  background: var(--color-white);
}

.chart-period {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
}

.chart-container {
  height: 300px;
  position: relative;
  margin-top: 1rem;
  display: block;
}

/* Activities Section */
.activities-section {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-6);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-4);
}

.section-header h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0;
}

.activities-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.activity-item {
  display: flex;
  gap: var(--spacing-3);
  padding: var(--spacing-3);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.activity-item:hover {
  background: var(--color-gray-50);
}

.activity-icon {
  width: 40px;
  height: 40px;
  background: var(--color-gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-icon i {
  width: 16px;
  height: 16px;
  color: var(--color-gray-600);
}

.activity-content {
  flex: 1;
}

.activity-content p {
  margin: 0 0 var(--spacing-1) 0;
  font-size: var(--font-size-sm);
  color: var(--color-gray-900);
}

.activity-time {
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
}

/* Filters Section */
.filters-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-6);
  gap: var(--spacing-4);
}

.filter-buttons {
  display: flex;
  gap: var(--spacing-2);
}

.filter-btn {
  padding: var(--spacing-2) var(--spacing-4);
  border: 1px solid var(--color-gray-300);
  background: var(--color-white);
  color: var(--color-gray-700);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background: var(--color-gray-50);
}

.filter-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.search-box {
  position: relative;
  width: 300px;
}

.search-box input {
  width: 100%;
  padding: var(--spacing-3) var(--spacing-10) var(--spacing-3) var(--spacing-3);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
}

.search-box i {
  position: absolute;
  right: var(--spacing-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-400);
  width: 16px;
  height: 16px;
}

/* Content Lists */
.content-list {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
  margin-bottom: var(--spacing-6);
}

/* Transaction Items */
.transaction-item {
  display: flex;
  align-items: center;
  padding: var(--spacing-4);
  border-bottom: 1px solid var(--color-gray-100);
  transition: background-color var(--transition-fast);
}

.transaction-item:hover {
  background: var(--color-gray-50);
}

.transaction-item:last-child {
  border-bottom: none;
}

.transaction-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  flex: 1;
}

.transaction-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transaction-icon.income {
  background: var(--color-success) / 10;
  color: var(--color-success);
}

.transaction-icon.expense {
  background: var(--color-danger) / 10;
  color: var(--color-danger);
}

.transaction-icon i {
  width: 16px;
  height: 16px;
}

.transaction-details h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0 0 var(--spacing-1) 0;
}

.transaction-meta {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
  margin: 0;
}

.transaction-amount {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin-right: var(--spacing-4);
}

.transaction-amount.income {
  color: var(--color-success);
}

.transaction-amount.expense {
  color: var(--color-danger);
}

.transaction-actions {
  display: flex;
  gap: var(--spacing-2);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-4);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
}

.pagination-info {
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
}

.pagination-current {
  font-size: var(--font-size-sm);
  color: var(--color-gray-700);
  font-weight: 500;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--spacing-12);
}

.empty-icon {
  width: 64px;
  height: 64px;
  background-color: var(--color-gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-4);
}

.empty-icon i {
  width: 32px;
  height: 32px;
  color: var(--color-gray-400);
}

.empty-state h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0 0 var(--spacing-2) 0;
}

.empty-state p {
  color: var(--color-gray-600);
  margin: 0 0 var(--spacing-6) 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Content Placeholder */
.content-placeholder {
  text-align: center;
  padding: var(--spacing-16);
}

.placeholder-icon {
  width: 80px;
  height: 80px;
  background: var(--color-primary) / 10;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-6);
}

.placeholder-icon i {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
}

.content-placeholder h3 {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0 0 var(--spacing-3) 0;
}

.content-placeholder p {
  font-size: var(--font-size-base);
  color: var(--color-gray-600);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: var(--spacing-12);
}

.loading-state .spinner {
  margin: 0 auto var(--spacing-4);
}

.loading-state p {
  color: var(--color-gray-600);
  font-size: var(--font-size-sm);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-section {
    padding: var(--spacing-4);
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-3);
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-4);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .charts-section {
    grid-template-columns: 1fr;
  }

  .filters-section {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    width: 100%;
  }

  .transaction-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-3);
  }

  .transaction-actions {
    align-self: flex-end;
  }

  .pagination {
    flex-direction: column;
    gap: var(--spacing-3);
  }
}

/* Welcome Header */
.welcome-header {
  background: linear-gradient(135deg, #10b981, #3b82f6);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.welcome-content h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #ffffff !important;
  line-height: 1;
}

.welcome-content p {
  margin-bottom: 1rem;
  color: #ffffff !important;
}

.welcome-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  text-align: center;
}

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

.welcome-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.welcome-stat .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1;
  color: #ffffff !important;
}

.welcome-stat .stat-label {
  font-size: 0.875rem;
  color: #ffffff !important;
  line-height: 1;
}

/* Corrigir cor dos títulos dos cards de resumo */
.stat-card .stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray-400) !important;
  margin-bottom: 0.5rem;
}

.stat-card .stat-number {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 0;
  color: var(--color-gray-900);
}

.stat-card .stat-info {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-gray-500);
  margin-top: 40px;
}
.mt-0 {
  margin-top: 0 !important;
}
.welcome-icon {
  position: absolute;
  top: 0;
  right: 0;
  opacity: 0.1;
  z-index: 1;
}

.welcome-icon img {
  width: 8rem;
  height: 8rem;
}

.welcome-content {
  position: relative;
  z-index: 2;
  flex: 1;
}

/* Alerts Section */
.alerts-section {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 32px 20px;
  border-radius: 12px;
  border-left: 3px solid;
}

.alert-warning {
  background-color: #fff7ed;
  border-left-color: #f59e0b;
}

.alert-info {
  background-color: #eff6ff;
  border-left-color: #3874ff;
}

.alert i {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
}

.alert-warning svg {
  color: #f59e0b;
}

.alert-info svg {
  color: #3874ff;
}

.alert-content {
  flex: 1;
}

.alert-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--color-gray-900);
}

.alert-content p {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  margin: 0;
}

.alert-action-btn {
  flex-shrink: 0;
  margin-left: auto;
}

/* Landing Page */
.landing-header {
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e5e7eb;
}

.landing-header .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.landing-header .header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.landing-header .logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #10b981;
}

.landing-header .nav-menu {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #ecfdf5, #ffffff, #eff6ff);
  padding: 5rem 0;
  text-align: center;
}

.hero .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-content {
  max-width: 64rem;
  margin: 0 auto;
}

.hero-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-icon .inline-flex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #111827;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-title .highlight {
  color: #10b981;
  display: block;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3rem;
}

.hero-actions .btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: #10b981;
  margin-bottom: 0.5rem;
}

.stat-text {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Benefits Section */
.benefits-section {
  padding: 5rem 0;
  background: white;
}

.benefits-section .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: bold;
  color: #111827;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 48rem;
  margin: 0 auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit-item {
  text-align: center;
  padding: 1.5rem;
}

.benefit-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.benefit-icon i {
  width: 3rem;
  height: 3rem;
  color: #10b981;
}

.benefit-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.benefit-item p {
  color: #6b7280;
}

/* Features Section */
.features-section {
  padding: 5rem 0;
  background: #f9fafb;
}

.features-section .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 1rem;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon.emerald {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.feature-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.feature-icon.purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.feature-icon.orange {
  background: rgba(249, 115, 22, 0.1);
  color: #f97316;
}

.feature-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.feature-content p {
  color: #6b7280;
  line-height: 1.6;
}

/* Footer */
.bg-gray-900 {
  background-color: #111827;
}

.text-white {
  color: var(--color-gray-900);
}

.py-12 {
  padding: 3rem 0;
}

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.h-8 {
  height: 2rem;
}

.w-auto {
  width: auto;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.text-gray-400 {
  color: #9ca3af;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.flex {
  display: flex;
}

.justify-center {
  justify-content: center;
}

.space-x-6 > * + * {
  margin-left: 1.5rem;
}

.text-gray-400:hover {
  color: var(--color-gray-900);
}

.hover\:text-white:hover {
  color: var(--color-gray-900);
}

/* Auth Pages (Login/Register) */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #f9fafb;
}

.auth-background {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 28rem;
}

.auth-form-container {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  position: relative;
  border: 1px solid #e5e7eb;
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo-image {
  height: 2.5rem;
  width: auto;
}

.auth-logo .inline-flex {
  display: inline-flex;
  align-items: center;
  color: #10b981;
  font-size: 1.5rem;
  font-weight: bold;
}

.auth-back {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.auth-back-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.auth-back-link:hover {
  color: #10b981;
}

.auth-form {
  margin-top: 2rem;
}

.auth-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-form-header h1 {
  font-size: 1.875rem;
  font-weight: bold;
  color: #111827;
  margin-bottom: 0.5rem;
}

.auth-form-header p {
  color: #6b7280;
  font-size: 0.875rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.password-input {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
  transition: color 0.2s;
}

.password-toggle:hover {
  color: #374151;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  gap: 1rem;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #374151;
  cursor: pointer;
  line-height: 1.4;
  flex: 1;
}

.checkbox input {
  width: 1rem;
  height: 1rem;
  accent-color: #10b981;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.checkbox a {
  color: #10b981;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.checkbox a:hover {
  color: #059669;
  text-decoration: underline;
}

.forgot-password {
  color: #10b981;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.forgot-password:hover {
  color: #059669;
}

.auth-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}

.auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-separator {
  text-align: center;
  margin: 1.5rem 0;
  position: relative;
  color: #6b7280;
  font-size: 0.875rem;
}

.auth-separator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
}

.auth-separator span {
  background: white;
  padding: 0 1rem;
}

.auth-footer {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
}

.auth-footer a {
  color: #10b981;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.auth-footer a:hover {
  color: #059669;
}

.auth-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  border: 1px solid;
}

.auth-message.success {
  background: #ecfdf5;
  border-color: #10b981;
  color: #047857;
}

.auth-message.error {
  background: #fef2f2;
  border-color: #f87171;
  color: #dc2626;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    flex-direction: column;
    text-align: center;
  }

  .auth-form-container {
    padding: 1.5rem;
  }

  .form-options {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .checkbox {
    align-items: flex-start;
  }
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    gap: 1rem;
  }

  .hero-content {
    max-width: none;
  }
}

/* ============================================================================
   PRÓXIMOS LEMBRETES - Nova Seção
   ============================================================================ */
.reminders-section {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #eee;
  margin-bottom: 32px;
}
.reminders-container .btn-primary {
  background: #219962;
  display: flex;
  padding: 16px 24px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: none;
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px; /* 100% */
}
.reminders-container .btn-primary i {
  font-size: 24px;
}
.reminders-container .page-header {
  border: none;
  padding: 0;
}
.reminder-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.reminder-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reminder-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.reminder-actions {
  display: flex;
  gap: 0.5rem;
}
@media (max-width: 768px) {
  .reminders-container .btn-primary,
  .reminders-container .page-actions {
    width: 100%;
  }
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-header h3 i {
  font-size: 28px;
  color: #3874ff;
}
.reminder-item {
  border-radius: 8px;
  background: #f9fafb;
  display: flex;
  padding: 20px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.reminder-item:hover {
  background: #f3f4f6;
}

.reminder-item:last-child {
  margin-bottom: 0;
}

.reminder-icon {
  display: flex;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1/1;
  border-radius: 8px;
  background: #e5edff;
  flex-shrink: 0;
  margin-right: 1rem;
}

.reminder-icon i {
  color: #2a5cd2;
  font-size: 24px;
}

.reminder-content {
  flex: 1;
}

.reminder-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 16px;
  color: #111;
  margin-bottom: 8px;
}

.reminder-date {
  font-size: 14px;
  line-height: 14px;
  font-weight: 500;
  color: #757575;
}

.reminder-badge {
  display: flex;
  padding: 6px 12px;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 12px; /* 100% */
}

.reminder-badge.green {
  background: #dcfce7;
  color: #15803d;
}

.reminder-badge.blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.ver-todos {
  color: #3874ff;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px; /* 100% */
  padding: 0;
}
.ver-todos:hover {
  background-color: transparent !important;
  color: #004dff !important;
}
@media (max-width: 767px) {
  .reminder-item {
    padding: 12px;
  }
  .reminder-icon {
    margin-right: 0.5rem;
  }
  .reminder-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 14px;
  }
  .reminder-date {
    font-size: 12px;
    line-height: 12px;
  }
  .section-header h3 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
  }
  .section-header p {
    font-size: 0.8rem;
    color: #6b7280;
    max-width: 48rem;
    margin: 0 auto;
}
  .ver-todos {
    font-size: 13px;
    line-height: 1;
  }
}
/* Styles for DAS reminder and create reminder cards */
.reminder-card.das-reminder {
  border-color: var(--color-red-300);
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.05),
    rgba(239, 68, 68, 0.02)
  );
}

.reminder-card.das-reminder .reminder-icon {
  background-color: var(--color-red-50);
  color: var(--color-red-600);
}

.reminder-card.create-reminder {
  border-style: dashed;
  border-width: 2px;
  border-color: var(--color-gray-300);
  background-color: transparent;
}

.reminder-card.create-reminder:hover {
  border-color: var(--color-emerald-400);
  background-color: rgba(16, 185, 129, 0.02);
}

.reminder-card.create-reminder .reminder-icon {
  background-color: var(--color-gray-100);
  color: var(--color-gray-500);
}

.reminder-card.create-reminder .reminder-content h4 {
  color: var(--color-gray-600);
}

.reminder-card.create-reminder .reminder-content p {
  color: var(--color-gray-500);
}

.reminder-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--color-gray-400);
  flex-shrink: 0;
}

/* Dark theme for new reminder styles */

/* ============================================================================
   CHARTS SECTION - Layout 2x2 Responsivo
   ============================================================================ */
.charts-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .charts-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.chart-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
  min-height: 280px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.chart-header h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-gray-900);
  margin: 0;
}

.chart-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 1rem;
}

.chart-stat-value {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-gray-900);
}

.chart-stat-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-stat-icon i {
  width: 16px;
  height: 16px;
}

.chart-stat-icon.green {
  background-color: rgba(16, 185, 129, 0.1);
}

.chart-stat-icon.green i {
  color: #10b981;
}

.chart-stat-icon.red {
  background-color: rgba(239, 68, 68, 0.1);
}

.chart-stat-icon.red i {
  color: #ef4444;
}

.chart-stat-icon.emerald {
  background-color: rgba(16, 185, 129, 0.1);
}

.chart-stat-icon.emerald i {
  color: #10b981;
}

.chart-stat-icon.blue {
  background-color: rgba(59, 130, 246, 0.1);
}

.chart-stat-icon.blue i {
  color: #3b82f6;
}

.chart-stat-info {
  font-size: 12px;
  line-height: 1;
  color: var(--color-gray-500);
}

.chart-container {
  height: 300px;
  position: relative;
  margin-top: 1rem;
  display: block;
}

/* ============================================================================
   RESPONSIVIDADE OTIMIZADA
   ============================================================================ */
@media (max-width: 1024px) {
  .dashboard-section {
    padding: var(--spacing-4);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .charts-section {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .dashboard-section {
    padding: 1rem;
  }

  .welcome-header {
    padding: 1rem;
  }

  .welcome-content h1 {
    font-size: 1.25rem;
  }

  .welcome-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .alert {
    flex-direction: column;
    gap: 0.75rem;
  }

  .alert-action-btn {
    margin-left: 0;
    align-self: flex-start;
  }

  .stat-card {
    padding: 1rem;
  }

  .stat-content .stat-value {
    font-size: 1.25rem;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
  }

  .stat-icon i {
    width: 20px;
    height: 20px;
  }

  .reminders-grid {
    grid-template-columns: 1fr;
  }

  .chart-card {
    padding: 1rem;
    min-height: 240px;
  }

  .chart-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .chart-stats {
    text-align: left;
  }

  .chart-container {
    height: 160px;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .welcome-stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .stat-card {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .stat-content {
    order: 2;
  }

  .stat-icon {
    order: 1;
    align-self: center;
  }

  .reminder-card {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* ============================================================================
   BOTÕES COLORIDOS PARA ALERTAS
   ============================================================================ */
.btn.btn-warning.alert-action-btn {
  background-color: #f59e0b;
  border-color: transparent;
  color: white;
  display: inline-flex;
  padding: 16px 24px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px; /* 100% */
}

.btn.btn-warning.alert-action-btn:hover {
  background-color: #d97706;
  border-color: #d97706;
}

.btn.btn-primary.alert-action-btn {
  background-color: #3874ff;
  border-color: transparent;
  color: white;
  display: inline-flex;
  padding: 16px 24px;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px; /* 100% */
}

.btn.btn-primary.alert-action-btn:hover {
  background-color: #004dff;
}

/* ============================================================================
   TRANSACTIONS PAGE STYLES
   ============================================================================ */

/* Transactions Header */
.transactions-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 34px;
}

.transactions-header-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 12px 0;
}

.transactions-header-content p {
  font-size: 1rem;
  color: var(--color-gray-500);
  margin: 0;
}

.transactions-header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.transaction-btn {
  border-radius: 8px;

  color: white;
  display: flex;
  padding: 16px 24px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px; /* 100% */
  border: none;
}
.transaction-btn i {
  font-size: 24px;
}
#new-transaction-btn {
  background: #219962;
}
#new-transaction-btn:hover {
  background: #0d844d;
}
#new-supplier-btn {
  background: #29b676;
}
#new-supplier-btn:hover {
  background: #0d9557;
}
@media (max-width: 767px) {
  .transaction-btn {
    width: 100%;
  }
  .transactions-section {
    padding: 16px !important;
  }
  .tabs-nav {
    gap: 16px;
    margin-bottom: 16px;
  }
  .transactions-container {
    padding: 0 !important;
  }
}
/* CSS básico para as abas */
.tabs-nav {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid #eee;
}

.tab-btn {
  padding-bottom: 32px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #757575;
  font-size: 16px;
  line-height: 1;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: #219962;
  border-bottom-color: #29b676;
}

.tab-content {
  display: none;
}

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

.section-subheader {
  margin-bottom: 1rem;
}

.section-subheader h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

/* Estilos para a tabela de fornecedores */
.suppliers-table-wrapper {
  overflow-x: auto;
}

.suppliers-table {
  width: 100%;
  border-collapse: collapse;
}

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

.suppliers-table th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #374151;
}

.supplier-name-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.supplier-name-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #6b7280;
}

.category-badge {
  background-color: #e0e7ff;
  color: #3730a3;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge.active {
  background-color: #dcfce7;
  color: #166534;
}

.status-badge.inactive {
  background-color: #fef2f2;
  color: #dc2626;
}

.supplier-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  padding: 0.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn.edit {
  background-color: #f3f4f6;
  color: #374151;
}

.action-btn.edit:hover {
  background-color: #e5e7eb;
}

.action-btn.delete {
  background-color: #fef2f2;
  color: #dc2626;
}

.action-btn.delete:hover {
  background-color: #fee2e2;
}

.action-btn svg {
  width: 1rem;
  height: 1rem;
}
/* Financial Summary */
.financial-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.summary-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: left;
  border-radius: 12px;
}

.summary-card h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-gray-400);
  margin: 0 0 0.25rem 0;
  text-transform: uppercase;
}

.summary-value {
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  margin: 0;
}

/* Summary Card Colors */
.summary-card.income .summary-value {
  color: #07976a;
}

.summary-card.expense .summary-value {
  color: #dc2626;
}

.summary-card.balance .summary-value {
  color: #07976a;
}

.summary-card.recurring .summary-value {
  color: #ea580c;
}

/* Button Styles */
.btn.btn-success {
  background-color: #22c55e;
  border-color: #22c55e;
  color: var(--color-gray-900);
}

.btn.btn-success:hover {
  background-color: #16a34a;
  border-color: #16a34a;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .financial-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .transactions-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .transactions-header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .financial-summary {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .summary-card {
    padding: 1rem;
  }

  .summary-value {
    font-size: 1.5rem;
  }
}

/* Transactions Section */
.transactions-section {
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fff;
  padding: 32px;
}

.transactions-list {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
}

/* Filter Dropdowns */
.filter-dropdowns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--border-radius);
  background-color: var(--color-white);
  color: var(--color-gray-900);
  font-size: 0.875rem;
  min-width: 150px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-emerald-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Suppliers Section */
.suppliers-section {
  margin-bottom: 2rem;
}

.suppliers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.supplier-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  transition: all var(--transition);
}

.supplier-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.supplier-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.supplier-header h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0;
}

.supplier-status {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.supplier-status.active {
  background-color: var(--color-emerald-100);
  color: var(--color-emerald-700);
}

.supplier-status.inactive {
  background-color: var(--color-gray-100);
  color: var(--color-gray-600);
}

.supplier-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.supplier-category {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  background-color: var(--color-gray-100);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.supplier-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-gray-900);
}

.supplier-recurrence {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--color-gray-600);
}

.supplier-frequency {
  font-weight: 500;
}

.supplier-actions {
  display: flex;
  gap: 0.5rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
  /* Previne scroll no body quando modal está aberto */
  overflow: hidden;
}

.modal-content {
  background-color: var(--color-white);
  border-radius: 1rem;
  width: 90%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: slideIn 0.3s ease-out;
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* Garantir que o modal content não seja clicável através do backdrop */
  pointer-events: auto;
  position: relative;
  z-index: 10000;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-gray-200);
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-gray-500);
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--color-gray-700);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid var(--color-gray-200);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-gray-700);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  background-color: var(--color-white);
  color: var(--color-gray-900);
  transition: border-color var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-emerald-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Checkbox Styles */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-gray-700);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.checkbox-mark {
  width: 16px;
  height: 16px;
  border: 1px solid var(--color-gray-300);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
}

/* Delete Options */
.delete-options {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.delete-option {
  padding: 1rem;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--border-radius);
  background-color: var(--color-gray-50);
}

.delete-option h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 0.5rem;
}

.delete-option p {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin-bottom: 1rem;
}

/* Settings Section */
.settings-section {
  margin-bottom: 2rem;
}

/* Settings page specific styles */
.dashboard-section.settings-page {
  min-height: auto;
}

.settings-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: 1rem;
}

.tags-list,
.categories-list {
  margin-bottom: 1rem;
}

.tag-item,
.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
}

.tag-item span,
.category-item span {
  font-size: 0.875rem;
  color: var(--color-gray-900);
}

/* Transaction Meta Tags */
.transaction-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.transaction-date,
.transaction-tag {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-weight: 500;
}

.transaction-date {
  color: var(--color-gray-600);
}

.transaction-tag {
  background-color: var(--color-emerald-100);
  color: var(--color-emerald-700);
}

/* Responsive Design */
@media (max-width: 768px) {
  .suppliers-grid {
    grid-template-columns: 1fr;
  }

  .filter-dropdowns {
    flex-direction: column;
    gap: 0.5rem;
  }

  .modal-content {
    width: 95%;
    margin: 1rem;
    max-height: 90vh;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem;
  }

  .delete-options {
    gap: 1rem;
  }

  .transaction-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .tags-selector {
    gap: 0.25rem;
  }

  .tag-btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

/* ============================================================================
   TRANSACTIONS TABLE STYLES
   ============================================================================ */
.transactions-table-container {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
  margin-bottom: 2rem;
}

.transactions-table {
  width: 100%;
  border-collapse: collapse;
}

.transactions-table th {
  background-color: var(--color-gray-50);
  color: var(--color-gray-700);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-gray-200);
}

.transactions-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-gray-100);
  vertical-align: middle;
}

.transaction-row:hover {
  background-color: var(--color-gray-50);
}

.transaction-date {
  color: var(--color-gray-900);
  font-size: 13px;
}

.transaction-description {
  font-weight: 500;
  color: var(--color-gray-900);
}

.category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
}

.category-badge.pessoal {
  background-color: #ede9fe;
  color: #7c3aed;
}

.category-badge.empresarial {
  background-color: #dbeafe;
  color: #2563eb;
}

.category-badge.utilidades {
  background-color: #f0fdf4;
  color: #16a34a;
}

.category-badge.tecnologia {
  background-color: #fef3c7;
  color: #d97706;
}

.transaction-client {
  color: #111;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 14px; /* 100% */
}
.transaction-client i {
  color: #3874ff;
  font-size: 20px;
  margin-right: 8px;
}

.transaction-value {
  font-weight: 600;
  font-size: 0.875rem;
}

.transaction-value.expense {
  color: #dc2626;
}

.transaction-value.income {
  color: #16a34a;
}

.tag-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background-color: var(--color-gray-100);
  color: var(--color-gray-700);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.transaction-actions {
  display: flex;
  gap: 0.5rem;
}

.filters-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-lg);
  color: var(--color-gray-700);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-toggle-btn:hover {
  background-color: var(--color-gray-50);
}

/* ============================================================================
   SUPPLIERS SECTION STYLES
   ============================================================================ */
.suppliers-section {
  margin-bottom: 3rem;
}

.suppliers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.supplier-card {
  background-color: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
  padding: 1.5rem;
  transition: all var(--transition);
}

.supplier-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.supplier-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.supplier-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.supplier-icon {
  width: 48px;
  height: 48px;
  background-color: #eff6ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.supplier-icon i {
  width: 24px;
  height: 24px;
  color: #2563eb;
}

.supplier-name-status {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.supplier-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0;
}

.supplier-status {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}

.supplier-status.active {
  background-color: #dcfce7;
  color: #166534;
}

.supplier-status.inactive {
  background-color: #fef2f2;
  color: #991b1b;
}

.supplier-actions {
  display: flex;
  gap: 0.5rem;
}

.supplier-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.supplier-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.supplier-label {
  color: var(--color-gray-600);
  font-size: 0.875rem;
  min-width: 100px;
}

.supplier-category,
.supplier-value,
.supplier-due-date {
  font-weight: 500;
  color: var(--color-gray-900);
  font-size: 0.875rem;
}

.supplier-value {
  color: var(--color-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .suppliers-grid {
    grid-template-columns: 1fr;
  }

  .supplier-card {
    padding: 1rem;
  }

  .supplier-icon {
    width: 40px;
    height: 40px;
  }

  .supplier-icon i {
    width: 20px;
    height: 20px;
  }

  .filters-row {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .transactions-table {
    font-size: 0.875rem;
  }

  .transactions-table th,
  .transactions-table td {
    padding: 0.75rem 0.5rem;
  }

  .transaction-actions {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* ============================================================================
   TAG SELECTOR STYLES
   ============================================================================ */
.tags-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tag-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-gray-300);
  border-radius: 0.5rem;
  background: white;
  color: var(--color-gray-700);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-weight: 500;
}

.tag-btn:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.tag-btn.selected {
  background: var(--color-primary);
  color: var(--color-gray-900);
  border-color: var(--color-primary);
}

.tag-btn.selected:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

/* Modal body no-scroll - quando modal está aberto */
body.modal-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* Garantir que o backdrop cubra toda a tela */
.modal.show {
  display: flex !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0, 0, 0, 0.7) !important;
}

/* Animação suave para abertura do modal */
.modal.show .modal-content {
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================================================
   DEMAIS SEÇÕES DA PÁGINA
   ============================================================================ */

/* ===== TRANSACTIONS PAGE STYLES ===== */
.transactions-container {
  background: white;
  margin-top: 32px;
}
.transactions-container h3 {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #111;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px; /* 100% */
  margin-bottom: 32px;
}
.transactions-container h3 i {
  color: #3874ff;
  font-size: 24px;
}
.filters-section {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: nowrap;
}

.filters-section .search-box {
  position: relative;
  min-width: 250px;
  flex: 1;
}

.filters-section .search-box input {
  width: 100%;
  display: flex;
  height: 48px;
  padding: 16px 16px 16px 40px;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex: 1 0 0;
  border-radius: 8px;
  border: 1px solid #dedede;
  background: #fff;
  color: #b5b5b5;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 14px; /* 100% */
}

.filters-section .search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #757575;
  width: 20px;
  height: 20px;
  font-size: 20px;
  pointer-events: none;
}

.filters-section .filter-select {
  min-width: 150px;
  display: flex;
  height: 48px;
  padding: 8px 16px;
  justify-content: space-between;
  align-items: center;
  flex: 1 0 0;
  border-radius: 8px;
  border: 1px solid #dedede;
  background: #fff;
  color: #b5b5b5;
  color: #111;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 14px; /* 100% */
}

.filters-section .btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.transactions-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.transactions-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 14px;
}

.transactions-table th {
  background: #f9fafb;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: #757575;
  border-bottom: 1px solid #eee;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.transactions-table td {
  padding: 16px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}

.transactions-table tbody tr:last-child td {
  border-bottom: none;
}

.transactions-table tbody tr:hover {
  background: #f9fafb;
}

/* New Badge Styles */
.category-badge-new {
  display: inline-block;
  padding: 6px 12px;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  background: #e5edff;
  color: #003cc7;
  text-align: center;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  line-height: 10px; /* 100% */
  text-transform: uppercase;
}

.tag-badge-new {
  border-radius: 100px;
  background: #f3f4f6;
  display: inline;
  padding: 6px 12px;
  justify-content: center;
  align-items: center;
  color: #555;
  text-align: center;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  line-height: 10px; /* 100% */
  text-transform: uppercase;
  margin-right: 8px;
}

.type-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-gray-900);
}

.type-badge.income {
  background: #22c55e;
}

.type-badge.expense {
  background: #ef4444;
}

.business-type-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-gray-900);
}

.business-type-badge.pessoal {
  background: #3b82f6;
}

.business-type-badge.empresarial {
  background: #22c55e;
}

/* Tag selection in forms */
.tags-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag-btn {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #374151;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.tag-btn:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.tag-btn.selected {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1e40af;
}

/* Confirmation Modal Styles */
.confirmation-content {
  text-align: center;
  padding: 20px;
}

.confirmation-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: #fef3c7;
  border-radius: 50%;
  color: #f59e0b;
}

.confirmation-icon svg {
  width: 24px;
  height: 24px;
}

.confirmation-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}
/* Layout de Cards para Fornecedores */
.suppliers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 0;
}

.supplier-card {
  padding: 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  border-radius: 12px;
  border: 1px solid #eee;
}

.supplier-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.supplier-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.supplier-icon {
  display: flex;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1/1;
  border-radius: 100px;
  background: #e5edff;
  font-size: 24px;
  flex-shrink: 0;
  color: #2a5cd2;
}

.supplier-icon i {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.supplier-actions {
  display: flex;
  gap: 8px;
  opacity: 1; /* Sempre visível */
}

.supplier-actions .action-btn,
.supplier-actions .action-btn:hover {
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background-color: transparent !important;
  transition: all 0.2s ease;
}

.supplier-actions .action-btn.edit {
  color: #07976a !important;
}

.supplier-actions .action-btn.delete {
  color: #dc2626 !important;
}

.supplier-card-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.supplier-name {
  color: #111;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px; /* 100% */
  margin-bottom: 4px;
}

.supplier-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  text-align: center;
  font-size: 8px;
  font-style: normal;
  font-weight: 600;
  line-height: 8px; /* 100% */
  text-transform: uppercase;
}

.supplier-status.active {
  background: #fff5dc;
  color: #30861d;
}

.supplier-status.inactive {
  background: #ffeef3;
  color: #ff154c;
}

.supplier-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.supplier-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-label {
  color: #757575;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 12px; /* 100% */
}

.detail-value {
  color: #111;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 12px; /* 100% */
}

/* Responsividade */
@media (max-width: 768px) {
  .suppliers-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .supplier-card {
    padding: 16px;
  }

  /* Removed opacity rule since actions are always visible now */
}

@media (max-width: 640px) {
  .suppliers-grid {
    grid-template-columns: 1fr;
  }

  .supplier-card-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .supplier-actions {
    align-self: flex-end;
  }
}

/* Estados de carregamento e vazio */
.suppliers-grid .text-center {
  grid-column: 1 / -1;
  padding: 40px 20px;
  color: #6b7280;
  font-size: 16px;
}

/* Animação de entrada dos cards */
.supplier-card {
  animation: fadeInUp 0.5s ease forwards;
}

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

/* Variações de ícones por categoria */
.supplier-icon.energia {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.supplier-icon.internet {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.supplier-icon.agua {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.supplier-icon.telefone {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.supplier-icon.gas {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.supplier-icon.material {
  background: linear-gradient(135deg, #10b981, #059669);
}

.supplier-icon.outros {
  background: linear-gradient(135deg, #6b7280, #4b5563);
}
/* Supplier Action Options */
.supplier-action-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.action-option {
  text-align: center;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s;
}

.action-option:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.action-option button {
  width: 100%;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.action-option p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.btn-warning {
  background: #f59e0b;
  color: var(--color-gray-900);
  border: 1px solid #f59e0b;
}

.btn-warning:hover {
  background: #d97706;
  border-color: #d97706;
}

/* Modal improvements */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.modal.active,
.modal[style*="display: block"] {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Prevent background interaction when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Transaction value colors */
.transaction-value.income {
  color: #22c55e;
  font-weight: 600;
}

.transaction-value.expense {
  color: #ef4444;
  font-weight: 600;
}

/* Action buttons */
.action-btn {
  background: transparent;
  border: none;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 2px;
  transition: all 0.2s;
}

.action-btn:hover {
  background: #f3f4f6;
}

.action-btn.edit:hover {
  background: #dbeafe;
  color: #3b82f6;
}

.action-btn.copy:hover {
  background: #ecfdf5;
  color: #22c55e;
}

.action-btn.delete:hover {
  background: #fef2f2;
  color: #ef4444;
}

.action-btn svg {
  width: 16px;
  height: 16px;
}
.transaction-actions .action-btn {
  padding: 0 !important;
  margin: 8px !important;
  background: transparent !important;
  width: auto !important;
  height: auto !important;
}
.transaction-actions .action-btn i {
  font-size: 16px;
}
.transaction-actions .action-btn.copy i {
  color: #07976a;
}
.transaction-actions .action-btn.edit i {
  color: #2563eb;
}
.transaction-actions .action-btn.delete i {
  color: #dc2626;
}
/* Responsive design */
@media (max-width: 768px) {
  .filters-section {
    flex-wrap: wrap;
    gap: 12px;
  }

  .filters-section .search-box {
    min-width: auto;
    flex: 1;
  }

  .filters-section .search-box input {
    padding: 8px 12px 8px 40px;
  }

  .filters-section .filter-select {
    min-width: 120px;
  }

  .transactions-table {
    font-size: 12px;
  }

  .transactions-table th,
  .transactions-table td {
    padding: 8px 12px;
  }

  .transactions-container {
    padding: 16px;
  }

  .supplier-action-options {
    gap: 12px;
  }

  .action-option {
    padding: 12px;
  }
}

/* ... existing code ... */

/* ===== CLIENTS PAGE ===== */

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition);
}

.stat-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.stat-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.stat-info {
  flex: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
  font-weight: 500;
  display: block;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  line-height: 1.2;
}

.stat-number.green {
  color: #22c55e;
}

.stat-number.purple {
  color: #a855f7;
}

.stat-number.orange {
  color: #f97316;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.blue {
  background-color: #eff6ff;
  color: #3b82f6;
}

.stat-icon.green {
  background-color: #dfffea;
  color: #17c653;
}

.stat-icon.purple {
  background-color: #f8f5ff;
}

.stat-icon.red {
  background: #ffeef3;
}
.stat-icon.yellow {
  background: #fff8dd;
}

.stat-icon.orange {
  background-color: #fff7ed;
  color: #f97316;
}
.stat-icon.purple i {
  color: #7239ea !important;
}
.stat-icon i {
  width: 28px;
  height: 28px;
}

/* Filters Section */
.filters-section {
  margin-bottom: 2rem;
}

.search-filter {
  display: grid;
grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
  width: 100%;
}

.search-input-container {
  position: relative;
  flex: 1;
  min-width: 350px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray-500);
  width: 18px;
  height: 18px;
}

.search-input {
  width: 100%;
  padding: 0.875rem 0.875rem 0.875rem 3rem;
  border: 1px solid var(--color-gray-300);
  border-radius: 10px;
  font-size: 1rem;
  transition: all var(--transition);
  background: white;
  color: #1f2937;
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.search-input::placeholder {
  color: #9ca3af;
}

.status-filter {
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--color-gray-300);
  border-radius: 10px;
  font-size: 1rem;
  background: white;
  color: #1f2937;
  cursor: pointer;
  transition: all var(--transition);
  min-width: 150px;
}

.status-filter:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.clients-count {
  font-size: 1rem;
  color: #6b7280;
  white-space: nowrap;
  font-weight: 500;
}

/* Clients Section */
.clients-section {
  background: white;
  border-radius: 16px;
  border: 1px solid #eee;
  overflow: hidden;
padding: 32px;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Client Card */
.client-card {
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
  padding: 1.75rem;
  background: white;
  transition: all var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.client-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.client-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.client-info {
  display: flex;
  align-items: center;
  flex: 1;
}

.client-avatar {
  width: 44px;
  height: 44px;
  background: var(--color-primary-100);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.client-avatar i {
  width: 22px;
  height: 22px;
}

.client-details {
  flex: 1;
}

.client-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 0.25rem 0;
}

.client-status {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
}

.client-status-new {
  background-color: var(--color-gray-100);
  color: var(--color-gray-800);
}

.client-status-active {
  background-color: #dcfce7;
  color: #166534;
}

.client-status-moderate {
  background-color: #fef3c7;
  color: #92400e;
}

.client-status-inactive {
  background-color: #fee2e2;
  color: #991b1b;
}

.client-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.action-btn i {
  width: 16px;
  height: 16px;
}

.edit-btn {
  background: var(--color-primary-50);
  color: var(--color-primary);
}

.edit-btn:hover {
  background: var(--color-primary-100);
}

.delete-btn {
  background: #fee2e2;
  color: #dc2626;
}

.delete-btn:hover {
  background: #fecaca;
}

/* Client Contact */
.client-contact {
  margin-bottom: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-item i {
  width: 16px;
  height: 16px;
  margin-right: 0.5rem;
  color: #9ca3af;
}

/* Client Stats */
.client-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.client-stats:last-child {
  margin-bottom: 0;
}

.stat-item {
  text-align: left;
}

.stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  display: flex;
  align-items: center;
}

.stat-value i {
  width: 16px;
  height: 16px;
  margin-right: 0.25rem;
  color: var(--color-primary);
}

.stat-value.money {
  color: var(--color-primary);
}

/* Client Notes */
.client-notes {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-gray-100);
}

.notes-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.notes-text {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.4;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  grid-column: 1 / -1;
}

.empty-icon {
  width: 48px;
  height: 48px;
  color: var(--color-gray-300);
  margin: 0 auto 1rem;
}

.empty-state p {
  color: #6b7280;
  font-size: 1rem;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 1.5rem 1.5rem 0;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0;
}

.modal-form {
  padding: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-gray-300);
  border-radius: 8px;
  font-size: 0.875rem;
  transition: all var(--transition);
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-gray-100);
  margin-top: 1rem;
}
/* 
.form-actions .btn {
  flex: 1;
} */

/* Dark Theme Support */

/* Responsive Design */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
  }

  .search-filter {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .search-input-container {
    min-width: auto;
  }

  .clients-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .client-stats {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
  }

  .stat-icon i {
    width: 24px;
    height: 24px;
  }

.clients-section{
  padding: 0;
}
}
/* Settings Page Specific Styles */
.settings-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.settings-header {
  margin-bottom: 2rem;
}

.settings-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 0.5rem 0;
}

.settings-header p {
  color: var(--color-gray-600);
  font-size: 1rem;
  margin: 0;
}

.settings-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .settings-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Settings Sidebar */
.settings-sidebar {
  background: var(--color-white);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--color-gray-200);
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  color: var(--color-gray-600);
  text-decoration: none;
  border-radius: 8px;
  transition: all var(--transition);
  font-weight: 500;
}

.settings-nav-item:hover {
  background-color: var(--color-gray-50);
  color: var(--color-gray-900);
}

.settings-nav-item.active {
  background-color: var(--color-primary);
  color: white;
}

.settings-nav-item i {
  width: 20px;
  height: 20px;
  font-size: 20px;
}

/* Settings Content */
.settings-content {
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid var(--color-gray-200);
  min-height: 600px;
}

.settings-section {
  display: none;
  padding: 2rem;
}

.settings-section.active {
  display: block;
}

.settings-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 1.5rem 0;
}

.settings-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-gray-900);
  margin: 0 0 1rem 0;
}

/* Settings Form */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--color-gray-700);
  font-size: 0.875rem;
}

.form-group input,
.form-group select {
  padding: 0.75rem;
  border: 1px solid var(--color-gray-300);
  border-radius: 8px;
  font-size: 0.875rem;
  transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group small {
  color: var(--color-gray-500);
  font-size: 0.75rem;
}

.password-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-gray-200);
}

.form-actions {
  padding-top: 1rem;
}

/* Plan Card */
.current-plan {
  margin-bottom: 2rem;
}

.plan-card {
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--color-primary), #059669);
  color: white;
}

.plan-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}

.plan-description {
  margin: 0;
  opacity: 0.9;
}

.plan-price {
  text-align: right;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.period {
  font-size: 0.875rem;
  opacity: 0.9;
}

.plan-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  color: #92400e;
}

.plan-alert i {
  font-size: 1.25rem;
  color: #f59e0b;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-item i {
  color: var(--color-success);
  font-size: 1.25rem;
}

/* WhatsApp Config */
.input-with-button {
  display: flex;
  gap: 0.5rem;
}

.input-with-button input {
  flex: 1;
}

.whatsapp-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--color-gray-50);
  border-radius: 8px;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.info-list li {
  margin-bottom: 0.5rem;
  color: var(--color-gray-600);
}

/* Notification Settings */
.notification-settings {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notification-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
}

.notification-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.notification-info p {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin: 0;
}

/* Toggle Switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-gray-300);
  transition: var(--transition);
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: var(--transition);
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--color-primary);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Tags Manager */
.tags-manager {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--color-primary);
  color: white;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.tag-remove {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.tag-remove:hover {
  opacity: 0.7;
}

.add-tag-form {
  display: flex;
  gap: 0.5rem;
}

.add-tag-form input {
  flex: 1;
}

/* Export Options */
.export-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.export-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--color-gray-200);
  border-radius: 8px;
  transition: all var(--transition);
}

.export-item:hover {
  border-color: var(--color-primary);
  background: var(--color-gray-50);
}

.export-icon {
  width: 48px;
  height: 48px;
  background: var(--color-gray-100);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.export-icon i {
  font-size: 1.5rem;
  color: var(--color-gray-600);
}

.export-info {
  flex: 1;
}

.export-info h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.export-info p {
  font-size: 0.875rem;
  color: var(--color-gray-600);
  margin: 0;
}

/* Danger Zone */
.danger-zone {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-gray-200);
}

.danger-zone h3 {
  color: var(--color-danger);
  margin-bottom: 1rem;
}

.danger-section {
  padding: 1.5rem;
  border: 1px solid #fecaca;
  background: #fef2f2;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.danger-info h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-danger);
  margin: 0 0 0.5rem 0;
}

.danger-info p {
  font-size: 0.875rem;
  color: #991b1b;
  margin: 0;
  line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
  .settings-sidebar {
    position: static;
    margin-bottom: 1rem;
  }

  .settings-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.25rem;
  }

  .settings-nav-item {
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

  .settings-section {
    padding: 1.5rem;
  }

  .export-buttons {
    grid-template-columns: 1fr;
  }

  .danger-section {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .settings-section {
    padding: 1rem;
  }

  .plan-header {
    flex-direction: column;
    gap: 1rem;
  }

  .notification-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .toggle {
    align-self: flex-end;
  }
}
/* Report Selection Cards */
.report-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.report-container {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}
.report-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.report-card.active {
  border-color: #10b981;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.05),
    rgba(16, 185, 129, 0.02)
  );
}

.report-card:hover {
  border-color: #10b981;
  transform: translateY(-2px);
}

.report-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.report-card p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

/* Period Selection */
.period-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

.period-header {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.period-controls {
  display: flex;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.form-group input {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
}

.generate-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: fit-content;
}

.generate-btn:hover {
  background: #059669;
}

/* Report Selection Cards */
.report-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.report-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.report-card.active {
  border-color: #10b981;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.05),
    rgba(16, 185, 129, 0.02)
  );
}

.report-card:hover {
  border-color: #10b981;
  transform: translateY(-2px);
}

.report-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.report-card p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

/* Period Selection */
.period-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

.period-header {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.period-controls {
  display: flex;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}

.form-group input {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
}

.generate-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: fit-content;
}

.generate-btn:hover {
  background: #059669;
}

/* Report Visualization */
.report-visualization {
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  margin-bottom: 2rem;
}

.report-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media(max-width:767px){
  .report-header{
    flex-direction: column;
  }
}
.report-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.report-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-icon {
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-icon:hover {
  background: #f8fafc;
}

.report-content {
  padding: 1.5rem;
}

/* Charts Section */
.charts-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.chart-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  overflow: hidden;
}

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

.chart-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}

.chart-container {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #64748b;
}

/* Detailed Analysis */
.detailed-analysis {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.analysis-section {
  margin-bottom: 2rem;
}

.analysis-section:last-child {
  margin-bottom: 0;
}

.analysis-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.analysis-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.analysis-item:last-child {
  border-bottom: none;
}

.analysis-label {
  font-size: 0.875rem;
  color: #64748b;
}

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

.analysis-value.positive {
  color: #10b981;
}

.analysis-value.negative {
  color: #ef4444;
}

/* Recommendations */
.recommendations {
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.recommendations-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recommendations ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recommendations li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(191, 219, 254, 0.5);
  color: #1e40af;
  font-size: 0.875rem;
  display: flex;
  align-items: start;
  gap: 0.5rem;
}

.recommendations li:last-child {
  border-bottom: none;
}

/* Report History */
.report-history {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.history-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
}

.history-list {
  padding: 0;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.3s;
}

.history-item:hover {
  background: #f8fafc;
}

.history-item:last-child {
  border-bottom: none;
}

.history-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.history-icon {
  width: 32px;
  height: 32px;
  background: #f1f5f9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.history-details h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.25rem 0;
}

.history-details p {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}

.history-actions {
  display: flex;
  gap: 0.5rem;
}

.history-btn {
  padding: 0.25rem 0.75rem;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s;
}

.history-btn.primary {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.history-btn:hover {
  background: #f8fafc;
}

.history-btn.primary:hover {
  background: #059669;
}

/* Responsive */
@media (max-width: 768px) {
  .period-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .charts-section {
    grid-template-columns: 1fr;
  }

  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .executive-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .report-selection {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .executive-summary {
    grid-template-columns: 1fr;
  }

  .page-content {
    padding: 1rem;
  }

  .report-content {
    padding: 1rem;
  }
}

/* Hidden by default */
.report-history {
  display: block;
}

.report-visualization {
  display: none;
}

.report-visualization.active {
  display: block;
}
/* Period Section - Layout horizontal igual à imagem */
.period-section {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.period-header {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.period-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: end;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0;
}

.form-group input {
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  min-width: 0;
}

.generate-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  height: fit-content;
  text-align: center;
  justify-content: center;
}

.generate-btn:hover {
  background: #059669;
}

.generate-btn i {
  font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .period-controls {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
/* Report Header - igual à imagem */
.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: transparent;
}

.report-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.report-title i {
  font-size: 20px;
  color: #64748b;
}

.report-actions {
  display: flex;
  gap: 0.75rem;
}

.report-actions .btn-icon {
  padding: 0.5rem 1rem;
  border: 1px solid;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.report-actions .btn-icon:first-child {
  color: #10b981;
  border-color: #10b981;
}

.report-actions .btn-icon:first-child:hover {
  background: #f0fdf4;
}

.report-actions .btn-icon:last-child {
  color: #3b82f6;
  border-color: #3b82f6;
}

.report-actions .btn-icon:last-child:hover {
  background: #eff6ff;
}

.report-actions .btn-icon {
  padding: 0.5rem 1rem;
  border: 1px solid;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.report-actions .btn-icon:first-child {
  color: #10b981;
  border-color: #10b981;
}

.report-actions .btn-icon:first-child::before {
  content: "WhatsApp";
}

.report-actions .btn-icon:last-child {
  color: #3b82f6;
  border-color: #3b82f6;
}

.report-actions .btn-icon:last-child::before {
  content: "PDF";
}

/* Remover ícones dos botões */
.report-actions .btn-icon i {
  display: none;
}
/* Report History - Layout igual à imagem */
.report-history {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-top: 2rem;
  overflow: hidden;
}

.history-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  background: transparent;
}

.history-list {
  padding: 0;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.3s;
}

.history-item:hover {
  background: #f8fafc;
}

.history-item:last-child {
  border-bottom: none;
}

.history-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.history-icon {
  width: 32px;
  height: 32px;
  background: #f1f5f9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
}

.history-icon i {
  font-size: 16px;
}

.history-details h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.25rem 0;
}

.history-details p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.history-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.history-btn {
  padding: 0.5rem 1rem;
  border: 1px solid;
  background: white;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.history-btn:first-child {
  color: #10b981;
  border-color: #10b981;
}

.history-btn:first-child:hover {
  background: #f0fdf4;
}

.history-btn:last-child {
  color: #3b82f6;
  border-color: #3b82f6;
}

.history-btn:last-child:hover {
  background: #eff6ff;
}

/* Responsive */
@media (max-width: 768px) {
  .history-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .history-actions {
    align-self: flex-end;
    width: 100%;
    justify-content: flex-end;
  }
}
.checklist-item[data-priority="alta"] {
  background: #fef2f2 !important;
  border-left: 4px solid #ef4444;
}

.checklist-item[data-priority="media"] {
  background: #fffbeb !important;
  border-left: 4px solid #f59e0b;
}

.checklist-item[data-priority="baixa"] {
  background: #f0fdf4 !important;
  border-left: 4px solid #22c55e;
}

/* Hover states mantendo as cores */
.checklist-item[data-priority="alta"]:hover {
  background: #fecaca !important;
}

.checklist-item[data-priority="media"]:hover {
  background: #fef3c7 !important;
}

.checklist-item[data-priority="baixa"]:hover {
  background: #dcfce7 !important;
}

/* Completed states com backgrounds mais saturados */
.checklist-item[data-priority="alta"].completed {
  background: #f0fdf4 !important;
  border-left: 4px solid #22c55e;
}

.checklist-item[data-priority="media"].completed {
  background: #f0fdf4 !important;
  border-left: 4px solid #22c55e;
}

.checklist-item[data-priority="baixa"].completed {
  background: #f0fdf4 !important;
  border-left: 4px solid #22c55e;
}
.filters-section {
  margin-bottom: 32px;
  z-index: 10;
  position: relative;
}



/* Garantir que clients-section não sobreponha filtros */
.clients-section {
  position: relative;
  z-index: 1;
}
/* Container dos clientes */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

/* Responsividade */
@media (max-width: 1200px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .clients-grid {
    grid-template-columns: 1fr;
  }
}

/* Card do cliente - foto */
.client-card-photo {
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.2s ease;
}

.client-card-photo:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Header do card */
.client-header-photo {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.client-info-photo {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Avatar circular */
.client-avatar-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Nome e status */
.client-details-photo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.client-name-photo {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #111;
}

.client-status-photo {
display: flex;
padding: 6px 8px;
justify-content: center;
align-items: center;
border-radius: 100px;
text-align: center;
font-size: 8px;
font-style: normal;
font-weight: 600;
line-height: 8px; /* 100% */
text-transform: uppercase;
width: max-content;
}

/* Ações do cliente */
.client-actions-photo {
  display: flex;
  gap: 8px;
}

.action-btn-photo {
 font-size: 16px;
  border: none;
 background-color: transparent;
 cursor: pointer;
}



.action-btn-photo.edit {
  color: #07976A;
}



.action-btn-photo.delete {
  color: #DC2626;
}


/* Seção de contato */
.client-contact-photo {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-item-photo {
display: flex;
align-items: center;
gap: 8px;
align-self: stretch;
color: #757575;
font-size: 12px;
font-style: normal;
font-weight: 500;
line-height: 12px; /* 100% */
}

.contact-item-photo i {
font-size: 16px;
aspect-ratio: 1/1;
flex-shrink: 0;
color: #757575;
}

/* Estatísticas em 2x2 */
.client-stats-photo {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-group-photo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-item-photo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label-photo {
color: #757575;
font-size: 10px;
font-style: normal;
font-weight: 500;
line-height: 10px; /* 100% */
}

.stat-value-photo {
color: #111;
font-size: 10px;
font-style: normal;
font-weight: 600;
line-height: 10px; /* 100% */
display: flex
;
align-items: center;
}
.stat-value-photo i{
  color: #3874FF;
  font-size: 16px;
  margin-right: 4px;
}
/* Filtros - ajuste para ficar igual à foto */

.clients-section .search-box {
    width: 100%;
    min-width: auto;
    max-width: none;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  width: 16px;
  height: 16px;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.status-filter {
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: white;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  min-width: 120px;
}

.status-filter:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.clients-count {
  color: #111;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px; /* 100% */
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: end;
}

.clients-count::before {
  content: "\E68E";
  font-size: 28px;
  font-family: "Phosphor";
  color: #3874ff;
}

/* Responsividade */
@media (max-width: 768px) {
  .clients-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .page-clientes{
    width: 100%;
  }
  .search-filter {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    
  }

  .search-input-container {
    max-width: none;
  }

  .client-card-photo {
    padding: 20px;
  }

  .stat-group-photo {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .client-header-photo {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .client-actions-photo {
    align-self: flex-end;
  }

  .stat-group-photo {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
.stat-with-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.stat-with-icon i {
  width: 14px;
  height: 14px;
  color: #6b7280;
  font-size: 14px;
  flex-shrink: 0;
}

.stat-label-photo {
  font-size: 12px;
  color: #718096;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Ajustar o item das estatísticas */
.stat-item-photo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* ============================================================================
   REMINDERS PAGE - CSS COMPLETO
   ============================================================================ */

/* Stats Grid */
.reminders-container .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}


.reminders-container .stat-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.reminders-container .stat-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
      flex-direction: column;
}

.reminders-container .stat-card-title {
color: #5D5D5D;
font-size: 16px;
font-style: normal;
font-weight: 600;
line-height: 16px; /* 100% */
}

.reminders-container .stat-card-icon {
display: flex;
width: 48px;
height: 48px;
justify-content: center;
align-items: center;
border-radius: 8px;
font-size: 28px;
}

.reminders-container .stat-card:nth-child(1) .stat-card-icon {
  background: #F8F5FF;
  color: #7239EA;
}

.reminders-container .stat-card:nth-child(2) .stat-card-icon {
background: #FFF8DD;
color: #F6C000;
}
#reminders-list-container .reminders-section{
  padding: 0;
}
.reminders-container .stat-card:nth-child(3) .stat-card-icon {
background: #FFEEF3;
color: #F8285A;
}

.reminders-container .stat-card-number {
color:  #111;
font-size: 26px;
font-style: normal;
font-weight: 800;
line-height: 26px; /* 100% */
margin-top: 8px;
}

/* Reminders Sections */
.reminders-container .reminders-section {
  margin-bottom: 32px;
}

/* Section Header para Lembretes Personalizados */
.reminders-container .section-header {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 15px;
padding: 32px;
border-bottom: 1px solid #eee;
}

.reminders-container .section-icon {
  font-size: 20px;
  color: #6366f1;
}

.reminders-container .section-title {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin: 0;
}

/* Reminder Cards */
.reminders-container .reminder-card {
padding: 32px;
align-items: flex-start;
gap: 24px;
align-self: stretch;
border-bottom: 1px solid #eee;
}
@media(max-width:767px){
  .reminders-container .section-header {
    display: flex
;
    align-items: center;
    justify-content: start;
    gap: 15px;
    padding: 32px;
    border-bottom: 1px solid #eee;
    flex-direction: column;
    margin-bottom: 0;
}
.reminders-container .reminder-message{
  flex-direction: column;
}
.reminders-container .reminder-subtitle{
  text-align: left;
}
.reminders-container .reminder-meta{
  align-items: start;
}
.reminder-conteudo{
  flex-direction: column;
  align-items: center;
}
}

.reminders-container .reminder-card:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

/* DAS Reminder - destaque especial */
.reminders-container .reminder-card.priority-high {
  
background: #FEF3F0;
border-radius: 12px;
}
.reminders-container .reminder-card.priority-high .icone-calendar{
background: #FEE2E2;
}

/* Reminder Card Header */
.reminders-container .reminder-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.reminders-container .reminder-title {
color: #111;
font-size: 20px;
font-style: normal;
font-weight: 700;
line-height: 20px; /* 100% */
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reminders-container .reminder-title i {
border-radius: 8px;
background: #E5EDFF;
display: flex;
width: 48px;
height: 48px;
justify-content: center;
align-items: center;
font-size: 28px;
}

.reminders-container .reminder-subtitle {
color: #5D5D5D;
font-size: 16px;
font-style: normal;
font-weight: 600;
line-height: 16px; /* 100% */
margin: 0 0 16px 0;
}
.reminder-conteudo{
  display: flex;
  gap: 24px;
  width: 100%;
}
.reminders-container .reminder-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
color: #757575;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 14px; /* 100% */
}

.reminders-container .reminder-meta span {
  position: relative;
}

.reminders-container .reminder-meta span:not(:last-child)::after {
  content: " ";
}

/* Reminder Actions */
.reminders-container .reminder-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.reminders-container .btn-icon {
font-size: 16px;
    padding: 0;
    background: transparent;
    border: none;
}



/* Compartilhar - azul */
.reminders-container .btn-icon:nth-child(1) {

  color: #2563EB;
}

/* Pausar/Play - amarelo */
.reminders-container .btn-icon:nth-child(2) {

  color: #DC8726;
}

/* Editar - azul claro */
.reminders-container .btn-icon:nth-child(3) {

  color: #07976A;
}

/* Excluir - vermelho */
.reminders-container .btn-icon:nth-child(4) {

  color: #DC2626;
}

/* Reminder Message */
.reminders-container .reminder-message {
border-radius: 8px;
border: 1px solid #EEE;
background: #F9FAFB;
color:#757575;
font-size: 14px;
font-style: normal;
font-weight: 400;
line-height: 14px;
display: flex;
padding: 20px;
align-items: center;
align-self: stretch;
}
.icone-calendar{
  display: flex;
width: 48px;
height: 48px;
justify-content: center;
align-items: center;
border-radius: 8px;
background: #E5EDFF;
font-size: 28px;
    flex-shrink: 0;
}
.reminders-container .reminder-message strong {

  font-weight: 700;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
  .reminders-container .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
.reminders-section{
  padding: 16px;
}
  .reminders-container .page-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .reminders-container .page-actions {
    width: 100%;
  }

  .reminders-container .page-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .reminders-container .reminder-card-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .reminders-container .reminder-actions {
    align-self: center;
  }
.reminders-container .reminder-title{
  justify-content: center;
}
  .reminders-container .reminder-meta {
    flex-direction: column;
    gap: 4px;
  }

  .reminders-container .reminder-meta span::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .reminders-container .stats-grid {
    grid-template-columns: 1fr;
  }

  .reminders-container .stat-card {
    padding: 20px;
    flex-direction: row;
  }

  .reminders-container .stat-card-number {
    font-size: 28px;
  }

  .reminders-container .reminder-card {
    padding: 20px;
  }

  .reminders-container .transactions-header-content h1 {
    font-size: 24px;
  }

  .reminders-container .transactions-header-content p {
    font-size: 14px;
  }
}

#client-modal-overlay .modal-form {
  padding: 0;
}
#new-client-btn {
  background: #219962;
  border-radius: 8px;
  color: white;
  display: flex;
  padding: 16px 24px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px;
  border: none;
}
#new-client-btn:hover {
  background: #0d844d;
}
@media (max-width: 767px) {
  #new-client-btn {
    width: 100%;
  }
}
.border-0{
  border:none;
}