/* Reset e configurações globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paleta Dark Mode */
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --secondary-color: #64748b;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --background: #0f172a;
  --surface: #1e293b;
  --surface-hover: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --border-color: #334155;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Página de Login */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #1e40af 0%, #0f172a 100%);
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.login-box {
  background: var(--surface);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

.login-box h1 {
  color: var(--primary-color);
  font-size: 28px;
  margin-bottom: 8px;
  text-align: center;
}

.login-box h2 {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 30px;
  text-align: center;
}

.login-info {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.login-info p {
  margin: 5px 0;
  color: var(--text-secondary);
}

/* Formulários */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
  background: var(--background);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

/* Botões */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

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

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

.btn-secondary {
  background: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background: #475569;
}

.btn-block {
  width: 100%;
}

/* Alertas */
.alert {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Dashboard */
.dashboard {
  min-height: 100vh;
}

/* Header */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header h1 {
  color: var(--primary-color);
  font-size: 24px;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-menu span {
  color: var(--text-secondary);
}

/* Filtros */
.filters {
  background: var(--surface);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.filters form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
}

.filter-group select,
.filter-group input[type="date"] {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 14px;
  background: var(--background);
  color: var(--text-primary);
}

.filter-group select:focus,
.filter-group input[type="date"]:focus {
  outline: none;
  border-color: var(--primary-color);
}

.date-range-fields {
  min-width: 150px;
}

.filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* KPIs */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.kpi-card {
  background: var(--surface);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.kpi-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.kpi-positive {
  color: var(--success-color);
}

.kpi-negative {
  color: var(--danger-color);
}

/* Gráficos */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.chart-container {
  background: var(--surface);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.chart-container h3 {
  margin-bottom: 20px;
  color: var(--text-primary);
  font-size: 18px;
}

/* Tabela */
.data-table {
  background: var(--surface);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.data-table h3 {
  margin-bottom: 20px;
  color: var(--text-primary);
  font-size: 18px;
}

.table-responsive {
  overflow-x: auto;
}

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

table thead {
  background: var(--background);
}

table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
}

table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
}

table tbody tr:hover {
  background: var(--surface-hover);
}

table .positive {
  color: var(--success-color);
  font-weight: 600;
}

table .negative {
  color: var(--danger-color);
  font-weight: 600;
}

/* Botão de editar na tabela */
.btn-table-edit {
  padding: 6px 12px;
  font-size: 13px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.btn-table-edit:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--surface);
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-content h2 {
  margin-bottom: 20px;
  color: var(--text-primary);
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  color: var(--text-secondary);
  cursor: pointer;
}

.close:hover {
  color: var(--text-primary);
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

/* Responsividade */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 15px;
  }

  .user-menu {
    width: 100%;
    justify-content: center;
  }

  .filters form {
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
  }

  .filter-actions {
    width: 100%;
    flex-direction: column;
  }

  .filter-actions .btn {
    width: 100%;
  }

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

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

  table {
    font-size: 12px;
  }

  table th,
  table td {
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .login-box {
    padding: 30px 20px;
  }

  .kpi-value {
    font-size: 24px;
  }

  .modal-content {
    padding: 20px;
  }
}

/* Estilos para gerenciamento de colaboradores e plataformas */
.modal-large {
  max-width: 700px;
}

/* Sistema de Abas */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 20px;
  gap: 5px;
}

.tab-button {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tab-button:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
}

.tab-button.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: transparent;
}

.tab-content {
  min-height: 200px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

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

.employee-card {
  background: var(--background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
}

.employee-card:hover {
  box-shadow: var(--shadow);
}

.employee-card.inactive {
  opacity: 0.6;
  background: #f1f5f9;
}

.employee-info {
  flex: 1;
}

.employee-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.employee-email {
  color: var(--text-secondary);
  font-size: 14px;
}

.employee-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-active {
  background: #d1fae5;
  color: #065f46;
}

.badge-inactive {
  background: #f1f5f9;
  color: #64748b;
}

.employee-actions {
  display: flex;
  gap: 8px;
}

.btn-edit,
.btn-toggle {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

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

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

.btn-toggle {
  background: var(--warning-color);
  color: white;
}

.btn-toggle:hover {
  opacity: 0.8;
}

.btn-toggle.activate {
  background: var(--success-color);
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

/* Badges de função (role) */
.badge-role {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
}

.badge-admin {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(124, 58, 237, 0.3);
}

.badge-employee {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Modal de credenciais */
.credentials-box {
  background: var(--background);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.credentials-box h3 {
  color: var(--primary-color);
  font-size: 16px;
  margin-bottom: 15px;
  text-align: center;
}

.credential-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--surface-hover);
  border-radius: 6px;
  margin-bottom: 10px;
}

.credential-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.credential-value {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-color);
  background: var(--surface);
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.credential-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

.btn-copy {
  background: var(--success-color);
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-copy:hover {
  background: #059669;
  transform: translateY(-1px);
}

.credentials-warning {
  background: #fef3c7;
  color: #92400e;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-top: 15px;
  border-left: 4px solid var(--warning-color);
}

.credentials-warning strong {
  display: block;
  margin-bottom: 5px;
  color: #78350f;
}

/* Ajustes responsivos para colaboradores */
@media (max-width: 768px) {
  .employee-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .employee-status {
    width: 100%;
    justify-content: space-between;
  }

  .employee-actions {
    width: 100%;
  }

  .btn-edit,
  .btn-toggle {
    flex: 1;
  }

  .badge-role {
    display: block;
    margin-left: 0;
    margin-top: 5px;
    width: fit-content;
  }

  .credential-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .credential-value {
    width: 100%;
    text-align: center;
  }
}

/* ==================== SISTEMA DE PERGUNTAS ==================== */

/* Timer de pergunta */
.timer-container {
  text-align: center;
  padding: 15px;
  background: var(--surface);
  border-radius: 8px;
  border: 2px solid var(--border-color);
}

.timer-label {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.timer-display {
  font-size: 2em;
  font-weight: bold;
  color: var(--primary-color);
  font-family: 'Courier New', monospace;
}

/* Lista de itens (perguntas, agendamentos) */
.list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.2s ease;
}

.list-item:hover {
  background: var(--surface-hover);
}

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

.list-item-title {
  font-size: 1.05em;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  word-wrap: break-word;
}

.list-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9em;
  color: var(--text-secondary);
}

.list-item-meta strong {
  color: var(--text-primary);
}

.list-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Badges de status */
.badge-status {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 500;
  white-space: nowrap;
}

.badge-active {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.badge-inactive {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger-color);
  border: 1px solid var(--danger-color);
}

.badge-pending {
  background: rgba(245, 158, 11, 0.2);
  color: var(--warning-color);
  border: 1px solid var(--warning-color);
}

/* Seletor de dias da semana */
.days-of-week-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.days-of-week-selector label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.days-of-week-selector label:hover {
  background: var(--surface-hover);
}

.days-of-week-selector input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Ajustes responsivos para perguntas */
@media (max-width: 768px) {
  .list-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .list-item-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .list-item-actions button {
    flex: 1;
  }

  .timer-display {
    font-size: 1.5em;
  }
}

/* ==================== SISTEMA DE PONTO ==================== */

/* Botão de ponto no header */
#timesheet-button {
  position: relative;
  font-weight: 600;
  min-width: 140px;
  transition: all 0.3s ease;
}

#timesheet-button.online {
  background: var(--success-color);
  color: white;
}

#timesheet-button.online:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

#timesheet-button.offline {
  background: var(--danger-color);
  color: white;
}

#timesheet-button.offline:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

#timesheet-button.loading {
  background: var(--secondary-color);
  color: white;
  opacity: 0.7;
  cursor: wait;
}

/* Modal de confirmação de ponto */
.timesheet-confirmation-content {
  text-align: center;
}

.timesheet-confirmation-content .current-time {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--primary-color);
  font-family: 'Courier New', monospace;
  margin: 20px 0;
  padding: 20px;
  background: var(--background);
  border-radius: 8px;
  border: 2px solid var(--border-color);
}

.timesheet-confirmation-content .action-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.timesheet-confirmation-content .action-description strong {
  color: var(--text-primary);
  font-size: 1.2em;
}

.timesheet-confirmation-content .form-actions {
  justify-content: center;
  gap: 15px;
}

/* Modal de histórico do colaborador */
.timesheet-history-content {
  max-height: 70vh;
  overflow-y: auto;
}

.timesheet-day-group {
  margin-bottom: 25px;
  background: var(--background);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid var(--border-color);
}

.timesheet-day-header {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timesheet-day-total {
  font-size: 0.95em;
  color: var(--success-color);
  font-weight: 600;
}

.timesheet-record-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: var(--surface);
  border-radius: 6px;
  margin-bottom: 8px;
  border-left: 4px solid transparent;
}

.timesheet-record-item.entrada {
  border-left-color: var(--success-color);
}

.timesheet-record-item.saida {
  border-left-color: var(--danger-color);
}

.timesheet-record-time {
  font-family: 'Courier New', monospace;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-primary);
}

.timesheet-record-type {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
}

.timesheet-record-type.entrada {
  background: rgba(16, 185, 129, 0.2);
  color: var(--success-color);
}

.timesheet-record-type.saida {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger-color);
}

.timesheet-empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
}

/* Modal de relatórios (admin) */
.modal-xlarge {
  max-width: 1200px;
}

.timesheet-reports-content {
  max-height: 80vh;
  overflow-y: auto;
}

/* Cards de estatísticas */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.stat-card {
  background: var(--background);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.stat-label {
  font-size: 0.85em;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--text-primary);
}

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

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

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

/* Tabela de colaboradores (relatório resumo) */
.employee-stats-table {
  margin-top: 20px;
  background: var(--background);
  border-radius: 8px;
  overflow: hidden;
}

.employee-stats-table h4 {
  padding: 15px;
  background: var(--surface);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  margin: 0;
}

.employee-stats-table table {
  margin: 0;
}

/* Filtros do relatório detalhado */
.report-filters {
  background: var(--background);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.report-filters .filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.report-filters .filter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Ícones de ação na tabela de relatórios */
.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 16px;
}

.action-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.action-icon.edit {
  background: var(--primary-color);
  color: white;
}

.action-icon.edit:hover {
  background: var(--primary-hover);
}

.action-icon.delete {
  background: var(--danger-color);
  color: white;
}

.action-icon.delete:hover {
  background: #dc2626;
}

/* Form de entrada manual */
.manual-entry-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

/* Indicador de edição */
.edited-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85em;
  color: var(--warning-color);
  cursor: help;
  margin-left: 8px;
}

.edited-indicator:hover {
  color: #d97706;
}

/* Tooltip */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 250px;
  background-color: var(--surface);
  color: var(--text-primary);
  text-align: left;
  border-radius: 6px;
  padding: 10px;
  border: 1px solid var(--border-color);
  position: absolute;
  z-index: 1001;
  bottom: 125%;
  left: 50%;
  margin-left: -125px;
  opacity: 0;
  transition: opacity 0.3s;
  box-shadow: var(--shadow-lg);
  font-size: 0.9em;
  line-height: 1.4;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Botão de exportar */
.btn-export {
  background: var(--success-color);
  color: white;
}

.btn-export:hover {
  background: #059669;
}

/* Gráficos de ponto */
.timesheet-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.timesheet-chart-container {
  background: var(--background);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.timesheet-chart-container h4 {
  color: var(--text-primary);
  margin-bottom: 15px;
  font-size: 1.1em;
}

/* Ajustes responsivos para sistema de ponto */
@media (max-width: 768px) {
  #timesheet-button {
    min-width: 120px;
    font-size: 0.9em;
  }

  .timesheet-confirmation-content .current-time {
    font-size: 2em;
    padding: 15px;
  }

  .timesheet-day-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .timesheet-record-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

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

  .report-filters .filter-row {
    grid-template-columns: 1fr;
  }

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

  .modal-xlarge {
    max-width: 95%;
  }

  .timesheet-reports-content {
    max-height: 75vh;
  }

  .action-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  #timesheet-button {
    min-width: 100px;
    padding: 8px 12px;
    font-size: 0.85em;
  }

  .timesheet-confirmation-content .current-time {
    font-size: 1.5em;
    padding: 10px;
  }

  .stat-card {
    padding: 15px;
  }

  .stat-value {
    font-size: 1.5em;
  }

  .timesheet-chart-container {
    padding: 15px;
  }
}
