/* Forluz - Sistema de Credenciamento */

/* Google Fonts - Roboto */
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

:root {
  --forluz-primary: rgb(240, 137, 33); /* Laranja Forluz - Pantone 144 */
  --forluz-secondary: rgb(56, 58, 53); /* Cinza Forluz - Pantone 447 */
  --forluz-success: #198754;
  --forluz-danger: #dc3545;
  --forluz-warning: #ffc107;
  --forluz-info: #0dcaf0;
  --bs-primary: var(--forluz-primary);
  --bs-secondary: var(--forluz-secondary);
  --bs-success: var(--forluz-success);
  --bs-danger: var(--forluz-danger);
  --bs-warning: var(--forluz-warning);
  --bs-info: var(--forluz-info);
  --bs-light: #f8fafc; /* Assuming no specific forluz light color, using the provided example */
  --bs-dark: #020617; /* Assuming no specific forluz dark color, using the provided example */

  --bs-body-bg: #f8fafc;
  --bs-body-color: #020617;

  --bs-border-radius: 0.75rem;
  --bs-border-radius-lg: 1rem;
}

/* General */
body {
  font-family: "Roboto", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Cards */
.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
  background: var(--forluz-primary);
  color: white;
  font-weight: 600;
}

.bg-primary {
  background-color: var(--forluz-primary) !important;
}

.btn-primary {
  background-color: var(--forluz-primary) !important;
  border-color: var(--forluz-primary) !important;
  color: white !important;
}

.btn-primary:hover {
  background-color: rgb(192, 110, 26) !important;
  border-color: rgb(192, 110, 26) !important;
}

.btn-outline-primary {
  color: var(--forluz-primary) !important;
  border-color: var(--forluz-primary) !important;
}

a {
  color: var(--forluz-primary) !important;
}

.btn:hover {
  opacity: 0.8;
  background-color: var(--forluz-primary) !important;
  color: white !important;
}

/* Botões do menu */
.nav-btn {
  border-radius: 0.6rem;
  padding: 0.45rem 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  color: #ffffffcc !important;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
}

/* Destaques por ação */
.nav-warning:hover {
  background: rgba(255, 193, 7, 0.25);
}

.nav-link:hover {
  background: rgba(220, 53, 69, 0.25);
  color: var(--forluz-primary);
}

/* Usuário */
.user-pill {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2rem;
  padding: 0.45rem 0.9rem !important;
  font-weight: 500;
}

.user-pill:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Dropdown mais moderno */
.dropdown-menu {
  border-radius: 0.8rem;
}

/* Status Badges */
.badge-pendente {
  background-color: #6c757d;
}

.badge-em_analise {
  background-color: #0dcaf0;
}

.badge-em_ajuste {
  background-color: #ffc107;
  color: #000;
}

.badge-deferido,
.badge-deferida {
  background-color: #198754;
}

.badge-indeferido,
.badge-indeferida {
  background-color: #dc3545;
}

.badge-recurso {
  background-color: #6f42c1;
}

.badge-em_defesa {
  background-color: #fd7e14;
}

/* Forms */
.form-control:focus,
.form-select:focus {
  border-color: var(--forluz-primary);
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.form-label {
  font-weight: 500;
  color: #495057;
}

/* Auth Pages */
.auth-container {
  max-width: 450px;
  margin: 0 auto;
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-card {
  border-radius: 1rem;
  overflow: hidden;
}

.auth-card .card-header {
  padding: 1.5rem;
  text-align: center;
}

.auth-card .card-header h4 {
  margin: 0;
  font-weight: 600;
}

.auth-card .card-body {
  padding: 2rem;
}

/* Dashboard */
/* .chapa-card {
  border-left: 4px solid var(--forluz-primary);
}

.chapa-card.status-pendente {
  border-left-color: #6c757d;
}

.chapa-card.status-em_analise {
  border-left-color: #0dcaf0;
}

.chapa-card.status-em_ajuste {
  border-left-color: #ffc107;
}

.chapa-card.status-deferida {
  border-left-color: #198754;
}

.chapa-card.status-indeferida {
  border-left-color: #dc3545;
} */

/* Candidato Cards */
.candidato-card {
  transition: transform 0.2s ease;
}

.candidato-card:hover {
  transform: translateY(-2px);
}

.candidato-vazio {
  border: 2px dashed #dee2e6;
  background-color: #f8f9fa;
}

.candidato-vazio:hover {
  border-color: var(--forluz-primary);
  background-color: #e7f1ff;
}

/* Document Upload */
.documento-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.documento-item .doc-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: var(--forluz-primary);
}

.documento-item .doc-info {
  flex: 1;
}

.documento-item .doc-actions {
  display: flex;
  gap: 0.5rem;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed #dee2e6;
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--forluz-primary);
  background-color: #e7f1ff;
}

.upload-zone i {
  font-size: 3rem;
  color: #6c757d;
}

.upload-zone.dragover i {
  color: var(--forluz-primary);
}

/* Progress Steps */
.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.progress-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.progress-step::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #dee2e6;
}

.progress-step:last-child::before {
  display: none;
}

.progress-step .step-number {
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 50%;
  background: #dee2e6;
  color: #6c757d;
  font-weight: 600;
  display: inline-block;
  position: relative;
  z-index: 1;
}

.progress-step.active .step-number {
  background: var(--forluz-primary);
  color: white;
}

.progress-step.completed .step-number {
  background: var(--forluz-success);
  color: white;
}

.progress-step .step-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-card .card-body {
    padding: 1.5rem;
  }

  .progress-step .step-label {
    font-size: 0.75rem;
  }
}

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

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

/* Loader */
.loader {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--forluz-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Print */
@media print {
  .navbar,
  footer,
  .btn,
  .no-print {
    display: none !important;
  }
}

/* Custom CSS para as mensagens de feedback */
.alert {
  border-left: 5px solid;
  border-color: inherit; /* Usa a cor do tema do alert */
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1rem; /* Espaçamento entre os alertas */
}
/* Definições de cores para as bordas dos alertas */
.alert-success {
  border-color: #198754;
} /* Bootstrap success */
.alert-error {
  border-color: #dc3545;
} /* Bootstrap danger */
.alert-warning {
  border-color: #ffc107;
} /* Bootstrap warning */
.alert-info {
  border-color: #0dcaf0;
} /* Bootstrap info */

/* ========================================
   COMISSÃO ADMIN STYLES
   ======================================== */

/* Sidebar Variables */
:root {
  --sidebar-width: 260px;
}

/* Admin Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(135deg, rgb(14 14 14) 0%, #3c3c3c 100%);
  padding: 1rem;
  overflow-y: auto;
  z-index: 1000;
}

.sidebar-brand {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  text-align: center;
  display: block;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav .nav-item {
  margin-bottom: 0.25rem;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
  background: var(--forluz-primary);
  color: white !important;
}

.sidebar-nav .nav-link i {
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

.sidebar-section {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 1rem 0.5rem;
  margin-top: 1rem;
}

/* Main Content (Admin) */
.main-content {
  margin-left: var(--sidebar-width);
  padding: 2rem;
}

/* Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #dee2e6;
}

/* Stats Cards */
.stat-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border-left: 4px solid;
}

.stat-card.primary {
  border-left-color: #0d6efd;
}
.stat-card.success {
  border-left-color: #198754;
}
.stat-card.warning {
  border-left-color: #ffc107;
}
.stat-card.danger {
  border-left-color: #dc3545;
}
.stat-card.info {
  border-left-color: #0dcaf0;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.stat-card .stat-label {
  color: #6c757d;
  font-size: 0.875rem;
}

/* Table Cards */
.table-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  overflow: hidden;
}

.card-body {
  padding: 1rem;
}

.table-card .card-header {
  background: white;
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 1.5rem;
  color: inherit;
}

/* Nav Pills - Forluz colors */
.nav-pills .nav-link {
  color: var(--forluz-secondary) !important;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
}

.nav-pills .nav-link:hover {
  background-color: rgba(240, 137, 33, 0.1);
  border-color: var(--forluz-primary);
}

.nav-pills .nav-link.active {
  background-color: var(--forluz-primary) !important;
  color: white !important;
  border-color: var(--forluz-primary);
}

/* Custom Table Light - Override Bootstrap */
.table-light,
.table-light > th,
.table-light > td {
  background-color: #f8f9fa !important;
  color: var(--forluz-secondary) !important;
}

.table-light thead th,
.table > thead.table-light th {
  background-color: #e9ecef !important;
  color: var(--forluz-secondary) !important;
  border-color: #dee2e6 !important;
}

.table-light tbody td,
.table > tbody.table-light td {
  background-color: #ffffff !important;
  color: var(--bs-body-color) !important;
}

.table-light tbody tr:nth-of-type(odd) td {
  background-color: #f8fafc !important;
}

/* Table header styling for table-card */
.table-card .table thead th {
  background-color: #ffffff !important;
  color: var(--forluz-secondary) !important;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
}

.table-card .table tbody td {
  background-color: white !important;
  vertical-align: middle;
}

/* Badge Pronto */
.badge-pronto {
  background-color: #20c997;
}

/* Mobile Header */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(135deg, rgb(14 14 14) 0%, #3c3c3c 100%);
  padding: 0 1rem;
  z-index: 998;
  align-items: center;
  justify-content: space-between;
}

.mobile-header .brand {
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.mobile-header .menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Admin Responsive */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
    padding-top: 80px !important;
  }
  .mobile-header {
    display: flex !important;
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  .sidebar-overlay.show {
    display: block;
  }
}

