/* ============================================================================
   ESTILOS GLOBAIS - Sistema de Suporte e Checklist (VERSÃO REFINADA)
   ============================================================================ */

/* Reset e variáveis */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paleta SaaS moderna: azul escuro + neutros + acentos */
  --primary: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
  --primary-dark: #1d3557;
  --primary-light: #457b9d;
  --secondary: #f1faee;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #e63946;
  --error: #e63946;
  --info: #457b9d;
  --dark: #1a202c;
  --gray-600: #4a5568;
  --gray-500: #718096;
  --gray-400: #a0aec0;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f7fafc;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --off-white: #f1faee;

  /* Bordas mais suaves */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;

  /* Sombras mais naturais e elegantes */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 10px 40px rgba(99, 102, 241, 0.15);
}

/* Tipografia e Body */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  background: linear-gradient(135deg, #f7fafc 0%, #f1faee 100%);
  background-attachment: fixed;
  color: var(--dark);
  min-height: 100vh;
  padding-bottom: 50px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================================
   HEADER STYLES
   ============================================================================ */

header {
  /* Header elegante com azul profissional */
  background: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 18px 0; /* topo e fundo iguais */
  position: sticky;
  top: 0;
  z-index: 100;
  border: none;
  box-shadow: none; /* remover linha/sombra visível */
  transition: background-color 0.18s ease, padding 0.12s ease,
    box-shadow 0.12s ease;
}

header.scrolled {
  background: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
  /* manter o mesmo padding do header para não afetar o fluxo do conteúdo */
  padding: 18px 0;
  /* Remover sombra/borda no estado scrolled para evitar linha visível */
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: none;
}

/* Ajuste no título para garantir contraste no fundo ultra-suave */
.header-title h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* Espaço visual após o header para igualar a distância superior/inferior
   sem alterar o padding do conteúdo subsequente */
header::after {
  content: "";
  display: block;
  height: 18px; /* igual ao padding superior do header */
  pointer-events: none;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent; /* fundo removido para mostrar a imagem sem branco */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease;
  overflow: hidden;
}

.header-logo:hover {
  transform: scale(1.05);
}

.header-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  border: none; /* garantir que não haja borda */
  box-shadow: none; /* sem sombra indesejada */
  background: transparent;
  outline: none;
}

.header-title h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-greeting {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.user-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ============================================================================
   BUTTON STYLES
   ============================================================================ */

.btn {
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.1px;
  height: 38px;
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
  height: 32px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(29, 53, 87, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29, 53, 87, 0.35);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
  background: var(--off-white);
  border-color: var(--gray-300);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-logout {
  background: #fef2f2 !important;
  color: #e63946 !important;
  border: 1px solid #fecaca !important;
}

.btn-logout:hover {
  background: #e63946 !important;
  color: white !important;
  transform: translateY(-2px);
}

.header-ia-btn {
  background: var(--white);
  color: var(--dark);
  padding: 8px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
}

.header-ia-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* Header-specific high-contrast buttons (opção 1: sólidos claros) */
header .btn-primary,
header .btn-secondary,
header .header-ia-btn {
  background: #ffffff;
  color: var(--primary-dark);
  border: 1px solid rgba(69, 123, 157, 0.12);
  box-shadow: 0 6px 20px rgba(69, 123, 157, 0.12);
  padding: 10px 18px;
  font-weight: 700;
  border-radius: var(--radius-md);
}

header .btn-primary:hover,
header .btn-secondary:hover,
header .header-ia-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(69, 123, 157, 0.18);
  filter: brightness(0.98);
}

/* Ajusta botões pequenos dentro do header para consistência */
header .btn-small {
  padding: 8px 12px;
  height: 36px;
  font-size: 12px;
}

/* Exceções: logout mantém visual de perigo */
header .btn-logout {
  background: #fef2f2 !important;
  color: #e63946 !important;
  border: 1px solid #fecaca !important;
  box-shadow: none;
}

/* Header sections for prioridades.php */
.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.header-left div {
  display: flex;
  flex-direction: column;
}

.header-left h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
  line-height: 1.2;
}

.header-left p {
  font-size: 13px;
  color: var(--gray-500);
  margin: 4px 0 0;
  font-weight: 500;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Contact Info Box */
.contact-info-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 25px;
  box-shadow: 0 2px 8px rgba(29, 53, 87, 0.08);
  margin-bottom: 25px;
  border: 1px solid rgba(29, 53, 87, 0.05);
}

.contact-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  transition: all 0.3s;
}

.contact-item:hover {
  background: #f0fdf4;
  border-color: var(--success);
  box-shadow: var(--shadow-sm);
}

.contact-icon {
  font-size: 24px;
  min-width: 28px;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 14px;
  color: var(--dark);
  font-weight: 500;
  word-break: break-word;
}

.form-section {
  display: flex;
  flex-direction: column;
}

.form-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.form-full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 15px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: all 0.2s;
  background: var(--gray-50);
  color: var(--dark);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.button-group {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-submit,
.btn-reset {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

.btn-submit {
  background: var(--success);
  color: var(--white);
  flex: 1;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-submit:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-reset {
  background: var(--gray-100);
  color: var(--dark);
  border: 1px solid var(--gray-200);
}

.btn-reset:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
  padding: 60px 0;
  background: linear-gradient(135deg, #f1faee 0%, #f7fafc 100%);
  color: var(--dark);
  text-align: center;
}

.hero h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.hero p {
  font-size: 16px;
  color: var(--gray-600);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================================
   CONTAINER & LAYOUT
   ============================================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ============================================================================
   CARD STYLES
   ============================================================================ */

.card-wrapper {
  transition: transform 0.3s ease;
}

.card-wrapper:hover {
  transform: translateY(-5px);
}

.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 25px;
  box-shadow: 0 2px 8px rgba(29, 53, 87, 0.08);
  border: 1px solid rgba(29, 53, 87, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.card-wrapper:hover .card {
  box-shadow: 0 12px 24px rgba(29, 53, 87, 0.12);
  border-color: var(--primary-light);
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--dark);
  display: block;
}

.card-subtitle {
  font-size: 13px;
  color: var(--gray-500);
  font-family: "Roboto Mono", monospace;
  margin-bottom: 20px;
  display: block;
}

.card-info {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-50);
}

.card-info strong {
  color: var(--dark);
  font-weight: 600;
}

.card-hint {
  margin-top: auto;
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 600;
  padding: 15px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-cta {
  margin-top: 10px;
}

.card-cta .btn {
  width: 100%;
}

.card-actions {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

.btn-icon {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}

.btn-icon:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

/* ============================================================================
   GRID SYSTEM
   ============================================================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

/* ============================================================================
   SECTION HEADER
   ============================================================================ */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 25px;
  padding: 20px;
  background: linear-gradient(135deg, #457b9d 0%, #1d3557 100%);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: none;
  color: white;
  box-shadow: 0 4px 12px rgba(29, 53, 87, 0.15);
}

.section-header h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
}

.section-header p {
  font-size: 14px;
  opacity: 0.8;
}

/* ============================================================================
   EMPTY STATE
   ============================================================================ */

.index-empty-state {
  background: linear-gradient(135deg, #457b9d 0%, #1d3557 100%);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-2xl);
  padding: 60px 40px !important;
  text-align: center;
  color: white;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 4px 12px rgba(29, 53, 87, 0.15);
}

.index-empty-state-icon {
  font-size: 64px;
  margin-bottom: 20px;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));
}

.index-empty-state h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.index-empty-state p {
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

/* ============================================================================
   ALERTS
   ============================================================================ */

.alert {
  padding: 15px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 25px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.alert-sucesso {
  background: #ecfdf5;
  color: #059669;
  border-left: 5px solid #10b981;
}

.alert-erro {
  background: #fef2f2;
  color: #e63946;
  border-left: 5px solid #e63946;
}

/* ============================================================================
   MODAIS
   ============================================================================ */

.modal,
.modal-confirm {
  background: rgba(15, 23, 42, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active,
.modal-confirm.active {
  display: flex;
}

.modal-content,
.modal-confirm-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScale {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-header {
  padding: 20px 25px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.modal-body {
  padding: 25px;
}

.close {
  font-size: 24px;
  color: var(--gray-400);
  cursor: pointer;
  transition: color 0.2s;
}

.close:hover {
  color: var(--danger);
}

/* ============================================================================
   FORMULÁRIOS
   ============================================================================ */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: all 0.2s;
  background: var(--gray-50);
  color: var(--dark);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-light);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Responsividade */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    padding: 15px;
  }

  .user-info {
    width: 100%;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .section-header .btn {
    width: 100%;
  }
}

/* ============================================================================
   PRIORITIES LIST STYLES
   ============================================================================ */

.priorities-list {
  display: grid;
  gap: 15px;
}

.priority-item {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  border-left: 4px solid var(--primary-dark);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.priority-item:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transform: translateX(4px);
}

.priority-item.critica {
  border-left-color: var(--error);
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.priority-item.alta {
  border-left-color: var(--warning);
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.priority-item.media {
  border-left-color: #6366f1;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.priority-item.baixa {
  border-left-color: var(--success);
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.priority-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 12px;
}

.priority-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.urgency-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.urgency-critica {
  background: var(--error);
  color: var(--white);
}

.urgency-alta {
  background: var(--warning);
  color: var(--white);
}

.urgency-media {
  background: #6366f1;
  color: var(--white);
}

.urgency-baixa {
  background: var(--success);
  color: var(--white);
}

.priority-description {
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.priority-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  color: var(--gray-500);
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

.priority-contact {
  display: flex;
  align-items: center;
  gap: 6px;
}

.priority-actions {
  display: flex;
  gap: 8px;
}

.btn-delete {
  background: var(--danger);
  color: var(--white);
  padding: 6px 12px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-delete:hover {
  background: var(--error);
  transform: scale(1.05);
}

/* ============================================================================
   FORMULÁRIOS DE ATUALIZAÇÃO (ADMIN)
   ============================================================================ */

.form-atualizar-prioridade {
  padding: 16px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 2px solid #10b981;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 3px rgba(16, 185, 129, 0.1);
}

.form-atualizar-prioridade input,
.form-atualizar-prioridade select,
.form-atualizar-prioridade textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e0;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13px;
  background: var(--white);
  transition: all 0.3s;
}

.form-atualizar-prioridade input:focus,
.form-atualizar-prioridade select:focus,
.form-atualizar-prioridade textarea:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  background: #f0fdf4;
}

.form-atualizar-prioridade button {
  background: var(--success);
  color: var(--white);
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.form-atualizar-prioridade button:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.form-atualizar-prioridade button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================================
   EMPTY STATE
   ============================================================================ */

.empty-state {
  text-align: center;
  padding: 30px 20px;
  color: var(--gray-400);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 20px;
  line-height: 1;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--gray-500);
}

/* ============================================================================
   TOAST NOTIFICATIONS
   ============================================================================ */

.toast-success {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #10b981;
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.toast-success.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
   URGENCY STATISTICS & ATTACHMENTS
   ============================================================================ */

.urgency-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.stat-box {
  background: var(--white);
  padding: 14px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.stat-box .stat-number {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
}

.stat-box .stat-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 6px;
}

.priority-anexos {
  margin-top: 12px;
}

.priority-anexos a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #f3f4f6;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  color: #6b7280;
  transition: all 0.2s;
}

.priority-anexos a:hover {
  background: #eef2ff;
  color: #4338ca;
}

/* ============================================================================
   RESPONSIVE DESIGN FOR PRIORIDADES
   ============================================================================ */

@media (max-width: 768px) {
  .priority-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .priority-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .urgency-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-box {
    padding: 12px;
  }

  .button-group {
    flex-direction: column;
  }

  .btn-submit,
  .btn-reset {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .urgency-stats {
    grid-template-columns: 1fr;
  }

  .toast-success {
    bottom: 10px;
    right: 10px;
    left: 10px;
  }
}

/* ============================================================================
   LOGIN PAGE STYLES
   ============================================================================ */

body.login-page {
  background: linear-gradient(135deg, #1d3557 0%, #457b9d 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 400px;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(29, 53, 87, 0.3);
  padding: 40px;
}

.login-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  overflow: hidden;
}

.login-logo img,
.login-logo svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  object-fit: contain;
}

.login-card h1 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--dark);
  text-align: center;
  font-weight: 800;
}

.login-subtitle {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 30px;
  font-size: 14px;
}

.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--gray-200);
}

.tab-btn {
  flex: 1;
  padding: 12px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-400);
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.tab-btn.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-dark);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.login-form-group {
  margin-bottom: 20px;
}

.login-form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--dark);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: all 0.2s;
  background: var(--gray-50);
  color: var(--dark);
  font-family: inherit;
}

.login-form-group input:focus {
  outline: none;
  border-color: var(--primary-light);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(29, 53, 87, 0.1);
}

.login-button {
  width: 100%;
  padding: 12px 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 12px rgba(29, 53, 87, 0.25);
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29, 53, 87, 0.35);
  filter: brightness(1.1);
}

.login-alert {
  padding: 12px 15px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
}

.login-alert-error {
  background: #fef2f2;
  color: #e63946;
  border: 1px solid #fecaca;
  border-left: 4px solid #e63946;
}

.login-alert-success {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #d1fae5;
  border-left: 4px solid #10b981;
}

.forgot-password-link {
  text-align: right;
  margin-top: -10px;
  margin-bottom: 15px;
}

.forgot-password-link a {
  color: var(--primary-dark);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s;
}

.forgot-password-link a:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

/* Modal de Reset de Senha */
.login-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(29, 53, 87, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.login-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-modal-content {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-xl);
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(29, 53, 87, 0.3);
  animation: modalScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.login-modal-header {
  margin-bottom: 20px;
}

.login-modal-header h2 {
  font-size: 20px;
  color: var(--dark);
  margin: 0;
  font-weight: 800;
}

.login-modal-header p {
  color: var(--gray-600);
  font-size: 13px;
  margin: 8px 0 0 0;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-400);
  cursor: pointer;
  width: 30px;
  height: 30px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--dark);
}

.token-section {
  display: none;
}

.token-section.show {
  display: block;
}

.step-indicator {
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.back-to-email {
  text-align: center;
  margin-top: 15px;
}

.back-to-email a {
  color: var(--primary-dark);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}

.back-to-email a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
