/* CSS Unificado - Sistema Financeiro */

/* Variáveis de Cor - Tema Claro */
:root {
  --bg-primary: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --bg-secondary: rgba(255, 255, 255, 0.95);
  --bg-card: #ffffff;
  --bg-sidebar: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  --bg-navbar: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --text-primary: #212529;
  --text-secondary: #495057;
  --text-muted: #6c757d;
  --text-light: rgba(255, 255, 255, 0.8);
  --text-white: #ffffff;
  --border-color: #dee2e6;
  --border-light: #e9ecef;
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.08);
  --shadow-strong: rgba(0, 0, 0, 0.12);
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --primary-hover: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  --secondary-gradient: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  --secondary-hover: linear-gradient(135deg, #5a6268 0%, #3d4142 100%);
}

/* Variáveis de Cor - Tema Dark */
[data-theme="dark"] {
  --bg-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --bg-secondary: rgba(30, 30, 46, 0.95);
  --bg-card: #2d2d44;
  --bg-sidebar: linear-gradient(180deg, #1f1f33 0%, #2a2a3e 100%);
  --bg-navbar: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --text-primary: #f7fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #a0aec0;
  --text-light: rgba(255, 255, 255, 0.8);
  --text-white: #ffffff;
  --border-color: #4a5568;
  --border-light: #2d3748;
  --shadow-light: rgba(0, 0, 0, 0.2);
  --shadow-medium: rgba(0, 0, 0, 0.3);
  --shadow-strong: rgba(0, 0, 0, 0.4);
  --primary-gradient: linear-gradient(135deg, #805ad5 0%, #6b46c1 100%);
  --primary-hover: linear-gradient(135deg, #6b46c1 0%, #553c9a 100%);
  --secondary-gradient: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  --secondary-hover: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
}

/* Estilos Base */
body {
  font-size: .875rem;
  background: var(--bg-primary);
  min-height: 100vh;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

main {
  background: var(--bg-secondary);
  border-radius: 12px;
  margin: 8px;
  padding: 20px;
  box-shadow: 0 4px 20px var(--shadow-light);
  transition: all 0.3s ease;
}


/* Placeholder Images */
.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}

/* Ícones */
.iconTamanho {
  max-width: 30px;
  width: auto;
}

.iconEditar {
  max-width: 20px;
  width: auto;
}

.iconDeletar {
  max-width: 20px;
  width: auto;
}

.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

/* Navegação */
.nav-link:hover {
  background: #868686;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 48px 0 0;
  background: var(--bg-sidebar);
  box-shadow: 2px 0 10px var(--shadow-light);
  transition: all 0.3s ease;
}

/* Sidebar recolhido */
.sidebar.collapsed {
  transform: none;
  margin-left: 0;
  width: 60px;
  overflow: visible;
  left: 0;
}

/* Quando sidebar está recolhido, esconder textos e mostrar apenas ícones */
.sidebar.collapsed .nav-link span {
  display: none;
}

/* Ajustar ícones quando sidebar está recolhido */
.sidebar.collapsed .nav-link i {
  margin-right: 0;
  text-align: center;
  width: 100%;
}

/* Ajustar tamanho dos ícones no menu recolhido */
.sidebar.collapsed .nav-link {
  padding: 12px 8px;
  text-align: center;
  justify-content: center;
  position: relative;
}

/* Tooltip para mostrar texto quando menu está recolhido */
.sidebar.collapsed .nav-link::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  margin-left: 5px;
  z-index: 1000;
}

.sidebar.collapsed .nav-link:hover::after {
  opacity: 1;
}

/* Ajustar main content quando sidebar está recolhido */
main.col-md-9 {
  transition: margin-left 0.3s ease;
  margin-left: 0;
}

/* Quando sidebar não está recolhido, manter margin do main */
.sidebar:not(.collapsed) ~ main {
  margin-left: 0;
}

/* Quando sidebar está recolhido, expandir main para ocupar todo espaço */
body.sidebar-collapsed main {
  margin-left: 60px !important;
  margin-right: 0 !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  max-width: calc(100% - 60px) !important;
  flex: 0 0 calc(100% - 60px) !important;
}

/* Ajustar o container quando sidebar está recolhido */
body.sidebar-collapsed main .container-fluid {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: calc(100% - 60px) !important;
}

/* Ajustar a row quando sidebar está recolhido */
body.sidebar-collapsed main .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100%;
}

/* Garantir que o conteúdo principal use todo o espaço disponível */
body.sidebar-collapsed main .table-responsive {
  width: 100% !important;
}

body.sidebar-collapsed main .card {
  width: 100% !important;
}

/* Ajustar o main quando sidebar está recolhido */
body.sidebar-collapsed .col-md-9 {
  flex: 0 0 calc(100% - 60px) !important;
  max-width: calc(100% - 60px) !important;
}

/* Ajustar o conteúdo para não ultrapassar o menu */
body.sidebar-collapsed main * {
  max-width: 100%;
  box-sizing: border-box;
}

/* Ajustar specifically a tabela quando menu está recolhido */
body.sidebar-collapsed main .table {
  max-width: 100%;
  table-layout: fixed;
}

/* Ajustar o formulário quando menu está recolhido */
body.sidebar-collapsed main form {
  max-width: 100%;
}

/* Botão toggle do sidebar */
#sidebarToggle {
  transition: all 0.3s ease;
  z-index: 101;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: 8px;
  margin: 2px 8px;
  cursor: pointer;
  width: calc(100% - 16px);
  text-align: left;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#sidebarToggle:hover {
  background: var(--primary-gradient);
  color: var(--text-white);
  transform: translateX(0);
}

/* Ajustar ícone do botão toggle */
#sidebarToggle i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
  transition: transform 0.3s ease;
}

/* Quando sidebar está recolhido, mudar ícone do botão */
.sidebar.collapsed #sidebarToggle i {
  transform: rotate(180deg);
}

/* Ajustar botão quando está no menu (nÃO no header) */
.sidebar #sidebarToggle {
  position: relative;
  display: block;
}

/* Remover estilos do botão no header (não existe mais) */
header #sidebarToggle {
  display: none;
}

@media (max-width: 767.98px) {
  .sidebar {
    top: 5rem;
  }
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.sidebar .nav-link {
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  margin: 2px 8px;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
  background: var(--primary-gradient);
  color: var(--text-white);
  transform: translateX(0);
  opacity: 0.9;
}

.sidebar .nav-link.active {
  background: var(--primary-gradient);
  color: var(--text-white);
  box-shadow: 0 4px 15px var(--shadow-medium);
}

.sidebar .nav-link .feather,
.sidebar .nav-link i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather,
.sidebar .nav-link:hover i,
.sidebar .nav-link.active i {
  color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}

/* Navbar */
.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white) !important;
}

.navbar-dark {
  background: var(--bg-navbar) !important;
  box-shadow: 0 2px 10px var(--shadow-light);
  transition: all 0.3s ease;
}

.navbar-nav .nav-link {
  color: var(--text-light) !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--text-white) !important;
}

.navbar-nav {
    display: flex !important;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-left: auto;
}

.navbar-nav .nav-item {
    margin: 0;
    display: inline-block;
}

.navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.navbar .navbar-toggler {
  top: .25rem;
  right: 1rem;
}

.navbar .form-control {
  padding: .75rem 1rem;
  border-width: 0;
  border-radius: 0;
}

.form-control-dark {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

/* Utilitários */
.centralizar-campos {
  width: 1%;
  white-space: nowrap;
  text-align: center;
}

/* Formulários */
.btn-toolbar {
  gap: 0.5rem;
}

.table-responsive {
  margin-top: 1rem;
}

/* Modais */
.modal-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.modal-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
}

/* Alertas */
.alert {
  margin-bottom: 1rem;
}

/* Badges */
.badge {
  font-size: 0.75em;
}

/* Cards */
.card {
  margin-bottom: 1rem;
  border: none;
  border-radius: 12px;
  background: var(--bg-card);
  box-shadow: 0 4px 20px var(--shadow-medium);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-primary);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--shadow-strong);
}

.card-header {
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
  border-radius: 12px 12px 0 0 !important;
  font-weight: 600;
  color: var(--text-primary);
}

/* Responsividade adicional */
@media (max-width: 576px) {
  .btn-toolbar {
    flex-direction: column;
  }
  
  .table-responsive {
    font-size: 0.875rem;
  }
}

/* Animações sutis */
.nav-link {
  transition: background-color 0.2s ease-in-out;
}

.btn {
  transition: all 0.3s ease-in-out;
  border-radius: 8px;
  font-weight: 500;
  padding: 8px 16px;
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
  box-shadow: 0 4px 15px var(--shadow-medium);
  color: var(--text-white);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-strong);
  color: var(--text-white);
}

.btn-secondary {
  background: var(--secondary-gradient);
  border: none;
  color: var(--text-white);
}

.btn-secondary:hover {
  background: var(--secondary-hover);
  transform: translateY(-1px);
  color: var(--text-white);
}

/* Estados de loading */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Estilos para validação */
.is-invalid {
  border-color: #dc3545;
}

.is-valid {
  border-color: #28a745;
}

.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #dc3545;
}

/* Estilos para tooltips */
.tooltip {
  font-size: 0.875rem;
}

/* Estilos para dropdowns */
.dropdown-menu {
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

/* Estilos para paginação */
.pagination {
  margin-bottom: 1rem;
}

/* Estilos para tabelas */
.table {
  margin-bottom: 0;
  border-radius: 8px;
  overflow: hidden;
  color: var(--text-primary);
}

.table th {
  border-top: none;
  background: var(--bg-sidebar);
  font-weight: 600;
  color: var(--text-secondary);
  border-right: 1px solid var(--border-color);
  padding: 16px 12px;
}

.table th:last-child {
  border-right: none;
}

.table td {
  padding: 8px 12px;
  vertical-align: middle;
  border-color: var(--border-light);
  color: var(--text-primary);
}

/* Linhas alternadas (zebra stripes) */
.table > tbody > tr:nth-child(odd) {
  background-color: rgba(248, 249, 250, 0.5);
}

.table > tbody > tr:nth-child(even) {
  background-color: transparent;
}

[data-theme="dark"] .table > tbody > tr:nth-child(odd) {
  background-color: rgba(45, 45, 68, 0.3);
}

[data-theme="dark"] .table > tbody > tr:nth-child(even) {
  background-color: transparent;
}

/* Hover da tabela com maior especificidade */
.table > tbody > tr:hover {
  background-color: #e9ecef !important;
}

[data-theme="dark"] .table > tbody > tr:hover {
  background-color: #2d3748 !important;
}

.table > tbody > tr:hover > td {
  background-color: transparent !important;
  color: var(--text-primary) !important;
}

/* Estilos para formulários de busca */
.form-search {
  margin-bottom: 1rem;
}

/* Estilos para ações em tabela */
.table-actions {
  white-space: nowrap;
  width: 1%;
}

.table-actions .btn {
  padding: 0.25rem 0.5rem;
  margin: 0 0.125rem;
}

/* Estilos para estados */
.status-active {
  color: #28a745;
}

.status-inactive {
  color: #6c757d;
}

.status-pending {
  color: #ffc107;
}

.status-error {
  color: #dc3545;
}

/* Estilos para gráficos */
.chart-container {
  position: relative;
  height: 300px;
  margin: 1rem 0;
}

/* Estilos para resumo financeiro */
.summary-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
}

.summary-card.income {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.summary-card.expense {
  background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
}

.summary-card.balance {
  background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
}

.summary-card .card-body {
  padding: 1.5rem;
}

.summary-card .card-title {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.summary-card .card-text {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0;
}

/* Estilos para notificações */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #dc3545;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Estilos para loading spinner */
.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

/* Estilos para empty states */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.empty-state img {
  max-width: 200px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h5 {
  color: #495057;
  margin-bottom: 1rem;
}

/* Estilos para footer */
.footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  padding: 1rem 0;
  margin-top: auto;
}

/* Theme Toggle */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 18px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

/* Form controls */
.form-control {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.form-control:focus {
  background: var(--bg-card);
  border-color: var(--primary-gradient);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
  color: var(--text-secondary);
  font-weight: 500;
  font-weight: bold;
}

.input-group-text {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.modal-content {
  background: var(--bg-card);
  color: var(--text-primary);
}

.modal-header {
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.modal-footer {
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border-color);
}

/* Estilos para print */
@media print {
  .sidebar,
  .navbar,
  .btn-toolbar,
  .table-actions {
    display: none !important;
  }
  
  .main-content {
    margin-left: 0 !important;
  }
}

/* Estilos das Páginas de Autenticação */
body.auth {
  background: url('/img/bg.png') center bottom/cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container,
.forgot-container,
.reset-container {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 450px;
  width: 100%;
  margin: 20px;
}

.logoff-container {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 500px;
  width: 100%;
  margin: 20px;
  text-align: center;
}

.login-header,
.forgot-header,
.reset-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 10px 30px;
  text-align: center;
}

.logoff-header {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 40px 30px;
}

.login-header .logo,
.forgot-header .logo,
.reset-header .logo,
.logoff-header .logo {
  margin: 0;
}

.login-header .logo img,
.forgot-header .logo img,
.reset-header .logo img,
.logoff-header .logo img {
  max-width: 240px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.login-header h1,
.forgot-header h1,
.reset-header h1 {
  margin: 10px 0 0 0;
  font-size: 24px;
  font-weight: 600;
}

.logoff-header h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
}

.login-header p,
.forgot-header p,
.reset-header p {
  margin: 8px 0 0 0;
  opacity: 0.9;
  font-size: 14px;
}

.logoff-header p {
  margin: 10px 0 0 0;
  opacity: 0.9;
  font-size: 16px;
}

.login-body,
.forgot-body,
.reset-body {
  padding: 40px 30px;
}

.logoff-body {
  padding: 40px 30px;
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-control {
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Estilos para input-group de autenticação (não afeta input-group-busca) */
body.auth .input-group-text {
  background: #f8f9fa;
  border: 2px solid #e1e5e9;
  border-right: none;
  border-radius: 10px 0 0 10px;
  color: #6c757d;
}

body.auth .input-group .form-control {
  border-left: none;
  border-radius: 0 10px 10px 0;
}

.btn-login,
.btn-submit,
.btn-reset {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  width: 100%;
  transition: all 0.3s ease;
}

.btn-login:hover,
.btn-submit:hover,
.btn-reset:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-login:active,
.btn-submit:active,
.btn-reset:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 10px;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  margin: 5px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  color: white;
}

.btn-secondary {
  background: #6c757d;
  border: none;
  border-radius: 10px;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  margin: 5px;
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
  color: white;
}

.btn-back {
  background: #6c757d;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  width: 100%;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-back:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
}

.alert {
  border-radius: 10px;
  border: none;
  padding: 15px;
  margin-bottom: 20px;
}

.alert-danger {
  background: #fee;
  color: #c33;
}

.alert-success {
  background: #efe;
  color: #3c3;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
}

.forgot-password {
  text-align: center;
  margin-top: 20px;
}

.forgot-password a {
  color: #667eea;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.forgot-password a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.loading {
  display: none;
}

.spinner-border {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.instructions {
  background: #f8f9fa;
  border-left: 4px solid #667eea;
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 8px;
}

.instructions h5 {
  color: #333;
  font-size: 16px;
  margin-bottom: 10px;
}

.instructions p {
  color: #666;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.password-strength {
  height: 5px;
  border-radius: 3px;
  margin-top: 8px;
  transition: all 0.3s ease;
}

.password-strength.weak {
  background: #dc3545;
  width: 33%;
}

.password-strength.medium {
  background: #ffc107;
  width: 66%;
}

.password-strength.strong {
  background: #28a745;
  width: 100%;
}

.password-requirements {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
}

.password-requirements ul {
  margin: 5px 0 0 0;
  padding-left: 20px;
}

.password-requirements li {
  margin: 3px 0;
}

.password-requirements li.valid {
  color: #28a745;
}

.logout-icon {
  font-size: 128px;
  color: #28a745;
  margin-bottom: 30px;
  opacity: 0.8;
}

.countdown {
  font-size: 18px;
  font-weight: bold;
  color: #667eea;
  margin: 20px 0;
}

@keyframes fadeOut {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.3; }
}

.logoff-header i {
  font-size: 64px;
  margin-bottom: 20px;
  animation: fadeOut 2s ease-in-out infinite;
}

.logoff-body h2 {
  color: #333;
  font-size: 24px;
  margin-bottom: 20px;
}

.logoff-body p {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Responsividade para páginas de autenticação */
@media (max-width: 480px) {
  .login-container,
  .forgot-container,
  .reset-container,
  .logoff-container {
    margin: 10px;
  }
  
  .login-body,
  .forgot-body,
  .reset-body,
  .logoff-body {
    padding: 30px 20px;
  }
  
  .logout-icon {
    font-size: 96px;
  }
}

/* Estilos do Dashboard */
.summary-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.summary-card.income {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.summary-card.expense {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
}

.summary-card.balance {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
}

.summary-card .card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-card .card-text {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.summary-card .card-body {
  padding: 25px;
}

.dashboard-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.dashboard-card .card-title {
  color: #495057;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-card .card-text {
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 20px;
}

.dashboard-card .card-text .h4 {
  color: #007bff;
  font-weight: 700;
  margin-right: 5px;
}

.dashboard-card .btn {
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.dashboard-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.dashboard-table {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dashboard-table .table {
  margin: 0;
}

.dashboard-table th {
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: #495057;
  padding: 15px 12px;
}

.dashboard-table td {
  padding: 12px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f3f4;
}

.dashboard-table tbody tr:hover {
  background: #f8f9fa;
}

.dashboard-table .badge {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.dashboard-table .text-success {
  color: #28a745;
  font-weight: 600;
}

.dashboard-table .text-danger {
  color: #dc3545;
  font-weight: 600;
}

.dashboard-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px 10px 0 0;
  padding: 20px;
}

.dashboard-header h5 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Responsividade do Dashboard */
@media (max-width: 768px) {
  .summary-card .card-text {
    font-size: 20px;
  }

  .summary-card .card-body {
    padding: 20px;
  }

  .dashboard-card .card-body {
    padding: 20px;
  }

  .dashboard-table th,
  .dashboard-table td {
    padding: 10px 8px;
    font-size: 14px;
  }
}

/* Estilos para campo de busca nas views - garantir alinhamento com botão */
.input-group-busca {
  display: flex;
  align-items: center;
}

.input-group-busca .form-control {
  height: 38px;
}

.input-group-busca .btn {
  height: 38px;
}
