/**
 * Arquivo CSS principal - Tasky System
 */

/* Importar estilos CSS do sistema */
@import url('styles.css');
@import url('login.css');
@import url('dashboard.css');
@import url('tickets.css');
@import url('components.css');
@import url('forms.css');
@import url('modals.css');
@import url('notifications.css');
@import url('profile.css');

/* Configurações personalizadas */
:root {
  /* Variáveis de cores primárias no formato RGB para facilitar opacidade */
  --primary-rgb: 66, 99, 235;
  --success-rgb: 52, 195, 143;
  --info-rgb: 80, 181, 255;
  --warning-rgb: 241, 180, 76;
  --danger-rgb: 244, 81, 108;
  
  /* Variáveis de cores para skeleton loading */
  --skeleton-start-rgb: 227, 230, 240;
  --skeleton-mid-rgb: 215, 219, 231;
  
  /* Cores derivadas das RGB */
  --primary-color: rgb(var(--primary-rgb));
  --primary-dark: rgb(51, 78, 194);
  --primary-light: rgb(108, 134, 242);
  
  --success-color: rgb(var(--success-rgb));
  --info-color: rgb(var(--info-rgb));
  --warning-color: rgb(var(--warning-rgb));
  --danger-color: rgb(var(--danger-rgb));
  
  /* Cores de texto */
  --text-color: #1e2022;
  --text-light: #677788;
  --text-color-dark: #e6e8ea;
  --text-light-dark: #a9b4c2;
  
  /* Cores de fundo */
  --body-bg: #f5f7fa;
  --card-bg: #ffffff;
  --header-bg: #ffffff;
  --sidebar-bg: #ffffff;
  --border-color: #e7eaf3;
  
  /* Cores para modo escuro */
  --body-bg-dark: #121212;
  --card-bg-dark: #1e1e1e;
  --header-bg-dark: #1e1e1e;
  --sidebar-bg-dark: #1e1e1e;
  --border-color-dark: #2d2d2d;
  
  /* Cores dos inputs */
  --input-bg: #ffffff;
  --input-bg-dark: #2d2d2d;
  --disabled-bg: #f8f9fa;
  
  /* Box shadows */
  --card-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --card-shadow-hover: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --header-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  
  /* Border radius */
  --radius: 0.5rem;
  --radius-sm: 0.25rem;
  --radius-lg: 0.75rem;
  
  /* Animações */
  --transition: all 0.2s ease-in-out;
  
  /* Layout */
  --header-height: 65px;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 70px;
}

/* Ajustes globais adicionais */
.btn-xs {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
}

.section-divider {
  display: flex;
  align-items: center;
  margin: 2rem 0;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.section-divider span {
  padding: 0 1rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Utilitários de margem e padding */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 1rem; }
.ml-4 { margin-left: 1.5rem; }
.ml-5 { margin-left: 3rem; }

.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 1rem; }
.mr-4 { margin-right: 1.5rem; }
.mr-5 { margin-right: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* Classes de cores de texto */
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-info { color: var(--info-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }
.text-muted { color: var(--text-light); }

/* Classes de background */
.bg-primary { background-color: var(--primary-color); color: white; }
.bg-success { background-color: var(--success-color); color: white; }
.bg-info { background-color: var(--info-color); color: white; }
.bg-warning { background-color: var(--warning-color); color: white; }
.bg-danger { background-color: var(--danger-color); color: white; }
.bg-light { background-color: var(--body-bg); }
.bg-dark { background-color: var(--text-color); color: white; }

/* Utilitários de alinhamento de texto */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Ajustes para o menu principal com mais itens */
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.main-nav ul li a {
  white-space: nowrap;
  padding: 0.75rem 1rem;
}

/* Dropdown Menu */
.dropdown-toggle {
  position: relative;
  padding-right: 1.5rem !important;
}

.dropdown-toggle .fa-chevron-down {
  position: absolute;
  right: 0.5rem;
  transition: transform 0.3s ease;
}

.dropdown-toggle.active .fa-chevron-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  display: none;
  background-color: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  min-width: 160px;
  z-index: 10;
  margin-top: 0.5rem;
  border: 1px solid var(--border-color);
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu li {
  display: block;
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background-color: rgba(var(--primary-rgb), 0.1);
}

/* Estilos para as seções administrativas */
.admin-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

/* Formulários compactos */
.compact-form {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 2rem;
  max-width: 500px;
}

/* Tabelas de dados */
.table-container {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 2rem;
}

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

.data-table th,
.data-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.data-table th {
  background-color: rgba(var(--primary-rgb), 0.05);
  font-weight: 600;
  color: var(--text-color);
}

.data-table tbody tr {
  cursor: pointer;
  transition: var(--transition);
}

.data-table tbody tr:hover {
  background-color: rgba(var(--primary-rgb), 0.05);
}

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

/* Barra de ações */
.action-bar {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

/* Abas */
.tab-buttons {
  display: flex;
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
  border-bottom: 2px solid var(--border-color);
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  transition: var(--transition);
}

.tab-btn.active {
  color: var(--primary-color);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.tab-pane {
  display: none;
}

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

/* Formulário em grid */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-grid .form-actions {
  grid-column: span 2;
  text-align: right;
}

/* Relatório */
.report-container {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
}

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

.report-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.report-table-container {
  overflow-x: auto;
}

/* Estados vazios */
.empty-state {
  padding: 3rem 2rem;
  text-align: center;
  width: 100%;
}

.empty-state i {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.empty-state small {
  font-size: 0.9rem;
}

/* Detalhes */
.details-container {
  margin-bottom: 1.5rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.details-grid .detail-item {
  background-color: rgba(var(--primary-rgb), 0.05);
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.details-grid .detail-item p {
  margin: 0;
}

.details-grid .full-width {
  grid-column: span 2;
}

/* Modal actions */
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Estilo para modo escuro */
body.dark-mode .data-table th {
  background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .details-grid .detail-item {
  background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .dropdown-menu {
  background-color: var(--card-bg-dark);
  border-color: var(--border-color-dark);
}

body.dark-mode .dropdown-menu a {
  color: var(--text-color-dark);
}

body.dark-mode .dropdown-menu a:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Header */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  height: 65px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-nav {
  flex: 1;
  margin-left: 1rem;
}

/* Ajustes de cores para o header */
.main-nav ul li a {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  color: #1a2233;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.main-nav ul li a:hover, 
.main-nav ul li a.active {
  background-color: #1a2233;
  color: #f8f9fa;
}

/* Botão primário com melhor contraste */
.btn-primary {
  background-color: #1a2233;
  color: #ffffff;
  border: none;
}

.btn-primary:hover {
  background-color: #141b2a;
  color: #ffffff;
}

/* Estilo do botão no modo escuro */
body.dark-mode .btn-primary {
  background-color: #f8f9fa;
  color: #1a2233;
}

body.dark-mode .btn-primary:hover {
  background-color: #e8eaed;
  color: #1a2233;
}

/* Ajustes para elementos no header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notification-icon {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 15px;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.notification-icon:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 600;
  height: 16px;
  width: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #fff;
}

.notification-icon i {
  font-size: 1.1rem;
  color: #1a2233;
}

body.dark-mode .notification-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.user-profile {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #1a2233;
}

.user-profile .user-name {
  margin: 0 0.5rem;
  color: #1a2233;
}

.user-profile i {
  font-size: 0.8rem;
  color: #1a2233;
}

.dark-mode-toggle {
  color: #1a2233;
  background: transparent;
  border: none;
  cursor: pointer;
}

.dark-mode-toggle i {
  font-size: 1.2rem;
}

/* Cores invertidas para o modo escuro */
body.dark-mode .notification-icon i,
body.dark-mode .user-profile,
body.dark-mode .user-profile .user-name,
body.dark-mode .user-profile i,
body.dark-mode .dark-mode-toggle,
body.dark-mode .theme-toggle {
  color: #f8f9fa;
}

/* Ajustes para o logo no header */
.header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  min-width: 150px;
  background-color: #e8eaed;
  height: 100%;
  position: relative;
}

.header-logo .logo {
  height: 70px;
  width: auto;
  display: block;
  margin: 0 auto;
  position: relative;
  top: 7px;
}

.header-logo .logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a2233;
}

/* Cores inversas para o modo escuro */
body.dark-mode .header-logo {
  background-color: #2d3446;
}

body.dark-mode .header-logo .logo-text {
  color: #f8f9fa;
}

/* Ajustes para usar todo o espaço disponível na tela */
.main-content {
  width: 100%;
  padding: 0;
  max-width: none;
}

.section-content {
  width: 100%;
  max-width: 100%;
  padding: 1.5rem 2rem;
  box-sizing: border-box;
}

.dashboard-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
}

.stat-card {
  flex: 1;
  min-width: 220px;
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1.2rem;
}

.stat-icon.orange {
  background-color: var(--orange-color);
}

.stat-icon.blue {
  background-color: var(--blue-color);
}

.stat-icon.green {
  background-color: var(--green-color);
}

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

.stat-icon.teal {
  background-color: #009688;
}

.stat-icon.indigo {
  background-color: #3f51b5;
}

.stat-info h3 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 5px 0;
}

.stat-info p {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* Tickets Recentes no Dashboard */
.dashboard-recent {
  background-color: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
}

.recent-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.recent-heading h2 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 0;
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticket-item {
  padding: 12px 15px;
  border-radius: 6px;
  background-color: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ticket-item:hover {
  transform: translateX(3px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ticket-info {
  display: flex;
  flex-direction: column;
}

.ticket-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
}

.ticket-date {
  color: var(--text-secondary);
}

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

.empty-state i {
  font-size: 2rem;
  margin-bottom: 10px;
  opacity: 0.5;
}

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

.loading-state i {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* Dark mode adaptations */
@media (prefers-color-scheme: dark) {
  .dashboard-stats .stat-card,
  .dashboard-recent {
    background-color: var(--dark-card-bg);
  }
  
  .ticket-item {
    background-color: var(--dark-bg-light);
  }
}

/* Estados da tabela (vazio, carregando, erro) */
.empty-state,
.loading-state,
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-light);
}

.empty-state i,
.error-state i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.empty-state p,
.loading-state p,
.error-state p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.sub-message {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Estado de erro específico */
.error-state {
  color: var(--danger);
}

.error-state i {
  color: var(--danger);
}

.error-state .retry-btn {
  margin-top: 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.error-state .retry-btn:hover {
  background-color: var(--primary-dark);
}

/* Loading spinner */
.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Tabela de tickets */
.tickets-table-container {
  position: relative;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tickets-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.tickets-table th,
.tickets-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.tickets-table th {
  background-color: var(--background-light);
  color: var(--text-medium);
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
}

.tickets-table tr:hover {
  background-color: var(--hover-bg);
}

.tickets-table .col-id {
  width: 60px;
}

.tickets-table .col-titulo {
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tickets-table .col-prioridade,
.tickets-table .col-status {
  width: 120px;
}

.tickets-table .col-acoes {
  width: 100px;
  text-align: center;
}

/* Badges de prioridade e status */
.priority-flag,
.status-flag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  min-width: 80px;
}

.priority-flag.alta {
  background-color: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.priority-flag.media {
  background-color: rgba(255, 152, 0, 0.1);
  color: #ff9800;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.priority-flag.baixa {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-flag.pendente {
  background-color: rgba(156, 39, 176, 0.1);
  color: #9c27b0;
  border: 1px solid rgba(156, 39, 176, 0.3);
}

.status-flag.em_andamento {
  background-color: rgba(33, 150, 243, 0.1);
  color: #2196f3;
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.status-flag.finalizado {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-flag.cancelado {
  background-color: rgba(158, 158, 158, 0.1);
  color: #9e9e9e;
  border: 1px solid rgba(158, 158, 158, 0.3);
}

/* Estilos para prazos formatados */
.prazo-col {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  white-space: nowrap;
  font-weight: 500;
}

.prazo-col i {
  margin-right: 4px;
}

.prazo-col.prazo-ok {
  color: #fff;
  background-color: #28a745;
}

.prazo-col.prazo-proximo {
  color: #000;
  background-color: #17a2b8;
}

.prazo-col.prazo-atrasado {
  color: #fff;
  background-color: #dc3545;
}

.prazo-col.prazo-erro {
  color: #fff;
  background-color: #6c757d;
}

/* Estilos para botões de ação como Novo Setor, Nova Categoria, Novo Colaborador */
.header-action-btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 4px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a2233;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-action-btn i {
  color: #ffffff;
  margin-right: 5px;
  font-size: 0.85rem;
}

.header-action-btn .btn-text {
  color: #ffffff;
  font-weight: 500;
}

.header-action-btn:hover {
  background-color: #141b2a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

body.dark-mode .header-action-btn {
  background-color: #f8f9fa;
  color: #1a2233;
}

body.dark-mode .header-action-btn i,
body.dark-mode .header-action-btn,
body.dark-mode .header-action-btn .btn-text {
  color: #1a2233;
}

body.dark-mode .header-action-btn:hover {
  background-color: #e8eaed;
}

/* Botões de ação na tabela */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: transparent;
  border: none;
  color: var(--text-medium);
  font-size: 0.9rem;
  margin: 0 2px;
  cursor: pointer;
  transition: all 0.2s;
}

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

.action-btn.aceitar:hover {
  background-color: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}

.action-btn.revisar:hover {
  background-color: rgba(245, 54, 54, 0.15);
  color: #f53636;
}

/* Formatação de data e hora */
.data-hora {
  display: flex;
  flex-direction: column;
}

.data-hora .data {
  font-weight: 500;
}

.data-hora .hora {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Sumário de tickets */
.tickets-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

.summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--card-bg);
  padding: 1rem;
  border-radius: 8px;
  min-width: 220px;
  flex-grow: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.summary-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.summary-item-content {
  display: flex;
  align-items: center;
}

.summary-item .stat-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.3rem;
  margin-right: 0.75rem;
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary-color);
}

.summary-item .stat-icon.orange {
  background-color: rgba(var(--warning-rgb), 0.1);
  color: var(--warning-color);
}

.summary-item .stat-icon.blue {
  background-color: rgba(var(--info-rgb), 0.1);
  color: var(--info-color);
}

.summary-item .stat-icon.green {
  background-color: rgba(var(--success-rgb), 0.1);
  color: var(--success-color);
}

.summary-info {
  display: flex;
  flex-direction: column;
}

.summary-label {
  font-size: 0.85rem;
  color: var(--text-light);
  display: block;
  font-weight: 500;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-color);
  display: block;
  text-align: right;
  min-width: 30px;
}

/* Cores para os contadores */
.summary-item:nth-child(1) .stat-number {
  color: var(--primary-color);
}

.summary-item:nth-child(2) .stat-number {
  color: #fa8c16; /* Pendentes - laranja */
}

.summary-item:nth-child(3) .stat-number {
  color: #2196f3; /* Em andamento - azul */
}

.summary-item:nth-child(4) .stat-number {
  color: #4caf50; /* Resolvidos - verde */
}

/* Dark mode para os itens de sumário */
body.dark-mode .summary-item {
  background-color: var(--card-bg-dark);
}

body.dark-mode .stat-number {
  color: var(--text-color-dark);
}

body.dark-mode .summary-label {
  color: var(--text-light-dark);
}

/* Adicionar estilos para o botão de tema */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  margin: 0 8px;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background-color: var(--hover-bg);
}

/* Tema escuro vs. claro */
body {
  --bg-color: #f5f7fa;
  --card-bg: #ffffff;
  --header-bg: #ffffff;
  --text-color: #333;
  --text-secondary: #666;
  --border-color: #e8e8e8;
  --hover-bg: #f1f1f1;
  
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: all 0.3s ease;
}

body.dark-mode {
  --bg-color: #1e2130;
  --card-bg: #272b3a;
  --header-bg: #272b3a;
  --text-color: #e2e2e2;
  --text-secondary: #aaaaaa;
  --border-color: #34394d;
  --hover-bg: #32374b;
}

/* Corrigir referências de imagens */
.login-section {
  background-image: url('../images/login-bg.svg');
  background-size: cover;
  background-position: center;
}

/* Adicionar transição para a imagem para suavizar a troca de logo */
.logo, .login-logo {
  transition: all 0.3s ease;
}

/* Dark Mode - inverter cores do header */
body.dark-mode .main-header {
  background-color: #1a2233;
  border-bottom-color: #34394d;
}

body.dark-mode .main-nav ul li a {
  color: #f8f9fa;
}

body.dark-mode .main-nav ul li a:hover,
body.dark-mode .main-nav ul li a.active {
  background-color: #f8f9fa;
  color: #1a2233;
}

/* Ajuste para logo na tela de login */
.login-logo {
  height: auto;
  max-width: 300px;
  margin-bottom: 1rem;
  margin-top: 0.8rem;
  display: block;
}

/* Ajustes específicos para o lembrar-me na tela de login */
.remember-me {
  display: flex;
  align-items: center;
  text-align: left;
  width: 100%;
}

.remember-me label {
  margin-left: 0.5rem;
  cursor: pointer;
}

/* Corrigir espaçamento no form de login */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* Estilos para perfil read-only */
.profile-details {
  margin: 2rem 0;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

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

.info-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.info-group p {
  font-size: 1rem;
  margin: 0;
  padding: 0.5rem 0;
  color: var(--text-color);
}

.right-aligned {
  text-align: right;
  justify-content: flex-end;
  margin-top: 2rem;
}

/* Ajuste para modo escuro */
body.dark-mode .info-group label {
  color: #aaaaaa;
}

body.dark-mode .info-group p {
  color: #e2e2e2;
}

body.dark-mode .profile-details {
  border-top-color: #34394d;
}

/* Estilos para o header das seções */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

body.dark-mode .section-header h1 {
  color: var(--text-color-dark);
}

/* Ajustes específicos para os botões de seção */
.section-header .header-action-btn {
  min-width: 150px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.action-btn i {
  font-size: 14px;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Melhoria nos estilos dos modais */
.modal-content {
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  overflow: hidden;
}

.modal-header {
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.compact-form .form-group {
  margin-bottom: 16px;
}

.compact-form input,
.compact-form select,
.compact-form textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 100%;
  transition: border-color 0.2s;
}

.compact-form input:focus,
.compact-form select:focus,
.compact-form textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.2);
}

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

/* Estilos para tabelas */
.table-container {
  overflow-x: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.data-table th,
.data-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.data-table th {
  background-color: #f9f9f9;
  font-weight: 600;
  color: #555;
}

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

.data-table tr:hover td {
  background-color: #f5f9ff;
}

/* Modo escuro para os novos elementos */
body.dark-mode .section-header h1 {
  color: #e1e1e1;
}

body.dark-mode .table-container {
  background: #2a2a2a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

body.dark-mode .data-table th {
  background-color: #333;
  color: #ddd;
}

body.dark-mode .data-table td {
  border-bottom: 1px solid #444;
}

body.dark-mode .data-table tr:hover td {
  background-color: #3a3a3a;
}

body.dark-mode .modal-header {
  background-color: #333;
  border-bottom: 1px solid #444;
}

body.dark-mode .compact-form input,
body.dark-mode .compact-form select,
body.dark-mode .compact-form textarea {
  background-color: #333;
  border-color: #555;
  color: #e1e1e1;
}

body.dark-mode .compact-form label {
  color: #ddd;
}

/* Estilos específicos para as tabelas de tickets */
.tickets-table {
  width: 100%;
  border-collapse: collapse;
}

.tickets-table th,
.tickets-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.tickets-table th {
  background-color: #f9f9f9;
  font-weight: 600;
  color: #555;
}

/* Estilos para colunas específicas */
.tickets-table th:nth-child(1), /* ID */
.tickets-table td:nth-child(1) {
  width: 60px;
  text-align: center;
}

.tickets-table th:nth-child(2), /* Título */
.tickets-table td:nth-child(2) {
  width: 20%;
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.tickets-table th:nth-child(3), /* Solicitante */
.tickets-table td:nth-child(3) {
  width: 10%;
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.tickets-table th:nth-child(4), /* Setor */
.tickets-table td:nth-child(4) {
  width: 10%;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.tickets-table th:nth-child(5), /* Prioridade */
.tickets-table td:nth-child(5) {
  width: 100px;
  text-align: center;
}

.tickets-table th:nth-child(6), /* Status */
.tickets-table td:nth-child(6) {
  width: 120px;
  text-align: center;
}

.tickets-table th:nth-child(7), /* Data criação */
.tickets-table td:nth-child(7),
.tickets-table th:nth-child(8), /* Conclusão */
.tickets-table td:nth-child(8),
.tickets-table th:nth-child(9), /* Prazo */
.tickets-table td:nth-child(9) {
  width: 120px;
  white-space: nowrap;
  text-align: center;
}

.tickets-table th:last-child, /* Ações */
.tickets-table td:last-child {
  width: 100px;
  text-align: center;
}

/* Estilos para flags de prioridade e status */
.priority-flag,
.status-flag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  min-width: 80px;
}

/* Cores para prioridades */
.priority-flag.alta {
  background-color: rgba(244, 67, 54, 0.1);
  color: #f44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.priority-flag.media {
  background-color: rgba(255, 152, 0, 0.1);
  color: #ff9800;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.priority-flag.baixa {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

/* Cores para status */
.status-flag.pendente {
  background-color: rgba(156, 39, 176, 0.1);
  color: #9c27b0;
  border: 1px solid rgba(156, 39, 176, 0.3);
}

.status-flag.em_andamento {
  background-color: rgba(33, 150, 243, 0.1);
  color: #2196f3;
  border: 1px solid rgba(33, 150, 243, 0.3);
}

.status-flag.finalizado {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-flag.cancelado {
  background-color: rgba(158, 158, 158, 0.1);
  color: #9e9e9e;
  border: 1px solid rgba(158, 158, 158, 0.3);
}

/* Modo escuro para tabelas */
body.dark-mode .tickets-table th {
  background-color: #2d3748;
  color: #e2e8f0;
}

body.dark-mode .tickets-table td {
  border-bottom-color: #2d3748;
}

body.dark-mode .tickets-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Estilos para tabelas tipo "caixa de entrada" no dashboard */
.inbox-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.inbox-table thead {
  border-bottom: 1px solid var(--border-color);
}

.inbox-table th {
  text-align: left;
  padding: 8px 10px;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.inbox-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.inbox-table .title-cell {
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  font-size: 0.85rem;
}

.inbox-table .status-col {
  text-align: right;
  width: 100px;
}

.inbox-table .status-cell {
  text-align: right;
}

/* Status flags para a caixa de entrada */
.inbox-table .status-flag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 500;
  text-align: center;
}

.inbox-table .status-flag.pendente {
  background-color: rgba(var(--warning-rgb), 0.1);
  color: var(--warning-color);
}

.inbox-table .status-flag.em_andamento {
  background-color: rgba(var(--info-rgb), 0.1);
  color: var(--info-color);
}

.inbox-table .status-flag.finalizado {
  background-color: rgba(var(--success-rgb), 0.1);
  color: var(--success-color);
}

.inbox-table .status-flag.cancelado {
  background-color: rgba(var(--danger-rgb), 0.1);
  color: var(--danger-color);
}

/* Ajustes para o dark mode */
@media (prefers-color-scheme: dark) {
  .inbox-table thead {
    border-bottom: 1px solid var(--border-dark);
  }
  
  .inbox-table td {
    border-bottom: 1px solid var(--border-dark-light);
  }
  
  .inbox-table th {
    color: var(--text-secondary-dark);
  }
} 