@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@600;700&display=swap');

:root {
  /* Paleta Slate Violet Corporativa (Mais clara, equilibrada e séria) */
  --bg-app: #221c35;
  --card-bg: #2d2644;
  --card-inner-bg: #383054;
  
  --corp-purple-accent: #a855f7;
  --corp-purple-light: #e9d5ff;
  --corp-purple-bright: #d8b4fe;
  --corp-purple-glow: rgba(168, 85, 247, 0.3);
  
  --corp-border: #443a63;
  --corp-border-focus: #55487c;
  
  --text-main: #ffffff;
  --text-secondary: #d1c7e0;
  --text-muted: #a69bb8;
  
  --radius-xl: 1.25rem;
  --radius-lg: 0.85rem;
  --radius-md: 0.5rem;
  
  --shadow-card: 0 20px 40px -10px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.clock-body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-app);
  background-image: 
    radial-gradient(ellipse 80% 80% at 50% 10%, rgba(126, 34, 206, 0.2), transparent),
    radial-gradient(#3a3055 1px, transparent 1px);
  background-size: 100% 100%, 26px 26px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
}

.main-wrapper {
  flex: 1;
  width: 100%;
}

/* Botões de Ação em Cards Distribuídos Abaixo do Card Principal */
.btn-action-card {
  width: 100%;
  aspect-ratio: 1 / 1; /* Quadrado perfeito 1:1 */
  border-radius: var(--radius-lg); /* Bordas arredondadas modernas */
  background: #362e50;
  border: 1px solid var(--corp-border-focus);
  color: #c084fc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  padding: 0;
}

.btn-action-card:hover,
.btn-action-card:focus {
  color: #ffffff;
  background: var(--corp-purple-accent);
  border-color: var(--corp-purple-light);
  box-shadow: 0 0 18px var(--corp-purple-glow);
  transform: translateY(-3px);
}

.btn-action-card i {
  color: inherit;
  font-size: 2.2rem; /* Ícones maiores e bem proporcionados */
  transition: transform 0.25s ease;
}

#btn-settings-register:hover i {
  transform: rotate(45deg);
}

/* Botão de Bloqueio/Sair com tom avermelhado sutil */
.btn-action-card-danger {
  background: #382436;
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.btn-action-card-danger:hover,
.btn-action-card-danger:focus {
  color: #ffffff;
  background: #dc2626;
  border-color: #ef4444;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.4);
}

/* Botões de Ação Quadrados com Bordas Arredondadas (Dentro do Card) */
.btn-action-square {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: #362e50;
  border: 1px solid var(--corp-border-focus);
  color: #c084fc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all 0.25s ease;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.btn-action-square:hover,
.btn-action-square:focus {
  color: #ffffff;
  background: var(--corp-purple-accent);
  border-color: var(--corp-purple-light);
  box-shadow: 0 0 12px var(--corp-purple-glow);
  transform: translateY(-2px);
}

.btn-action-square i {
  color: inherit;
  font-size: 1.15rem;
  transition: transform 0.25s ease;
}

#btn-settings-register:hover i {
  transform: rotate(45deg);
}

/* Botão de Bloqueio/Sair com tom avermelhado sutil */
.btn-action-square-danger {
  background: #382436;
  border-color: rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.btn-action-square-danger:hover,
.btn-action-square-danger:focus {
  color: #ffffff;
  background: #dc2626;
  border-color: #ef4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
}

/* Botão de Engrenagem Integrado (Legado) */
.btn-gear-inline {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(216, 180, 254, 0.2);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.btn-gear-inline:hover {
  color: #ffffff;
  background: var(--corp-purple-accent);
  border-color: var(--corp-purple-light);
  box-shadow: 0 0 12px var(--corp-purple-glow);
  transform: rotate(45deg);
}

/* Botão de Bloquear Terminal (Mesma altura/largura da engrenagem, vermelho sutil) */
.btn-lock-inline {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.btn-lock-inline:hover {
  color: #ffffff;
  background: #dc2626;
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
  transform: scale(1.08);
}

.clock-title {
  letter-spacing: 0.04em;
  font-size: 1.65rem;
  color: #ffffff !important;
  font-weight: 800;
}

/* Card Principal */
.clock-card {
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--corp-border);
  position: relative;
}

/* Badge de Ícone na Tela de Login */
.login-icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, #5b4b85 0%, #3a2e58 100%);
  border: 1px solid var(--corp-purple-accent);
  color: #ffffff;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px var(--corp-purple-glow);
}

/* Inputs da Tela de Login e Tela Principal */
#form-login .form-control,
#main-input-token {
  box-shadow: none !important;
  border: 1px solid #443a63 !important;
  transition: border-color 0.2s ease !important;
}

#form-login .form-control:focus,
#main-input-token:focus {
  box-shadow: none !important;
  outline: none !important;
  border-color: #a855f7 !important;
}

#form-login .input-group-text,
#form-login .btn-outline-secondary {
  box-shadow: none !important;
  border: 1px solid #443a63 !important;
}

#form-login .btn-outline-secondary:hover,
#form-login .btn-outline-secondary:focus {
  border-color: #a855f7 !important;
  color: #d8b4fe !important;
}

/* Bloco Display Central */
.clock-display-wrapper {
  background: var(--card-inner-bg);
  border: 1px solid var(--corp-border-focus);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
}

.clock-time-info {
  text-align: center;
}

.live-clock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3.2rem;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 0 15px rgba(216, 180, 254, 0.4);
}

.live-date {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
}

.clock-divider {
  width: 1px;
  height: 65px;
  background-color: var(--corp-border-focus);
}

/* Sensor NFC / RFID Indicador Visual */
.nfc-icon-wrapper {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #4c3f70 0%, #352b50 100%);
  color: #ffffff;
  border: 1px solid #5d4d87;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  user-select: none;
}

.nfc-card-icon {
  font-size: 1.95rem;
  line-height: 1;
  color: #f3e8ff;
}

.nfc-signal-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.85rem;
  color: #d8b4fe;
  animation: nfcWave 2.5s infinite ease-in-out;
}

.nfc-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  border: 1px solid var(--corp-purple-accent);
  opacity: 0.5;
  animation: pulseAnimation 2.5s infinite;
  pointer-events: none;
}

@keyframes pulseAnimation {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

@keyframes nfcWave {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
    color: #ffffff;
  }
}

/* Instrução Inferior */
.card-instruction {
  background: #362e50;
  color: #f3e8ff;
  border: 1px solid var(--corp-border-focus);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
}

.card-instruction i {
  color: #c084fc;
}

/* SweetAlert2 Modal & Inputs */
/* Botões de Opção do Menu Administrativo */
.btn-corp-card-option {
  background-color: #2b2342 !important;
  border: 1px solid #483a6f !important;
  color: #ffffff !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
}

.btn-corp-card-option:hover,
.btn-corp-card-option:focus {
  background-color: #382c57 !important;
  border-color: #a855f7 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25) !important;
  outline: none !important;
}

.btn-corp-card-option:hover i,
.btn-corp-card-option:focus i {
  color: #d8b4fe !important;
}

/* Botões de Ação na Lista de Colaboradores (Editar, Ajustar, Relatório) */
.btn-admin-action-purple {
  background-color: transparent !important;
  border: 1px solid #a855f7 !important;
  color: #c084fc !important;
  transition: all 0.2s ease !important;
}

.btn-admin-action-purple:hover,
.btn-admin-action-purple:focus {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%) !important;
  border-color: #c084fc !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4) !important;
}

/* Botões de Atalho de Filtro de Relatório */
.btn-preset-filter {
  background-color: #2b2342 !important;
  border: 1px solid #55487c !important;
  color: #d1c7e0 !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

.btn-preset-filter:hover {
  background-color: #382c57 !important;
  border-color: #a855f7 !important;
  color: #ffffff !important;
}

.btn-preset-filter.active {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%) !important;
  border-color: #c084fc !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4) !important;
}

/* Scrollbar personalizada corporativa (Super fina e discreta) */
.corp-custom-scroll::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.corp-custom-scroll {
  scrollbar-width: thin;
  scrollbar-color: #5d4d87 #231c36;
}

.corp-custom-scroll::-webkit-scrollbar-track {
  background: #231c36;
  border-radius: 4px;
}

.corp-custom-scroll::-webkit-scrollbar-thumb {
  background: #5d4d87;
  border-radius: 4px;
}

.corp-custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #a855f7;
}

/* Switch / Checkbox de Inativos */
.form-check-input:checked {
  background-color: #a855f7 !important;
  border-color: #c084fc !important;
}

.form-check-input {
  background-color: #2b2342 !important;
  border-color: #58487e !important;
  box-shadow: none !important;
}

/* Estilos do Painel Administrativo Master */
.admin-container {
  max-width: 1280px;
}

.admin-header-icon {
  width: 48px;
  height: 48px;
  color: #c084fc;
}

.btn-admin-logout {
  border-color: #f87171 !important;
  color: #f87171 !important;
}

.btn-admin-edit {
  border-color: #a855f7 !important;
  color: #c084fc !important;
}

.table-dark {
  --bs-table-bg: transparent !important;
  color: #f1f5f9 !important;
}

.table-row-corp {
  border-bottom: 1px solid #2d2644 !important;
  transition: background-color 0.2s ease !important;
}

.table-row-corp:hover {
  background-color: #382c57 !important;
}

.card-admin-topbar {
  background-color: #2b2342;
  border: 1px solid #483a6f;
}

.card-admin-filter {
  background-color: #231c36;
  border: 1px solid #3c3258;
}

.table-header-admin {
  background-color: #2b2342;
  border-bottom: 1px solid #483a6f;
}

.table-admin-border-row {
  border-bottom: 1px solid #3c3258;
}

/* Modal Largo para Listagem de Funcionários */
.corp-modal-wide {
  max-width: 90vw !important;
  width: 680px !important;
}

/* Remover contorno/foco do botão X no SweetAlert */
.swal2-close:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Backdrop Fumê com Efeito Embaçado (Blur / Glassmorphism) */
.swal2-container.swal2-backdrop-show,
.swal2-container {
  background: rgba(13, 10, 24, 0.72) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.modal-backdrop.show {
  background-color: rgba(13, 10, 24, 0.72) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.swal2-popup.corp-dark-modal {
  background: #2d2644 !important;
  color: #ffffff !important;
  border: 1px solid #443a63 !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6) !important;
}

/* Badge de Aviso Outline (Fundo 100% Transparente, borda e texto amarelo) */
.badge-warning-outline {
  background-color: transparent !important;
  background: transparent !important;
  border: 1px solid #eab308 !important;
  color: #facc15 !important;
  font-weight: 600 !important;
}

/* Badge de Entrada / Saída Outline (Fundo 100% Transparente, apenas borda e texto) */
.badge-success-outline {
  background-color: transparent !important;
  background: transparent !important;
  border: 1px solid #22c55e !important;
  color: #4ade80 !important;
  font-weight: 600 !important;
}

.badge-danger-outline {
  background-color: transparent !important;
  background: transparent !important;
  border: 1px solid #ef4444 !important;
  color: #f87171 !important;
  font-weight: 600 !important;
}

.swal2-title {
  color: #ffffff !important;
}

/* Inputs do Modal: Sem Sombra e com Borda Roxa no Foco */
.swal2-popup .form-control,
.swal2-popup .form-select {
  box-shadow: none !important;
  border: 1px solid #443a63 !important;
  background-color: #231c36 !important;
  color: #ffffff !important;
  transition: border-color 0.2s ease !important;
}

/* Placeholders Sutis, Discretos e com Peso Leve */
::placeholder {
  color: #807599 !important; /* Tom discreto e suave */
  font-weight: 400 !important;
  opacity: 0.65 !important;
}

::-webkit-input-placeholder {
  color: #807599 !important;
  font-weight: 400 !important;
  opacity: 0.65 !important;
}

::-moz-placeholder {
  color: #807599 !important;
  font-weight: 400 !important;
  opacity: 0.65 !important;
}

:-ms-input-placeholder {
  color: #807599 !important;
  font-weight: 400 !important;
  opacity: 0.65 !important;
}

.swal2-popup input::placeholder,
.swal2-popup textarea::placeholder,
.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: #807599 !important;
  font-weight: 400 !important;
  opacity: 0.65 !important;
}

.swal2-popup .form-control:focus,
.swal2-popup .form-select:focus {
  box-shadow: none !important;
  outline: none !important;
  border-color: #a855f7 !important;
}

.swal2-popup .form-select option {
  background-color: #231c36 !important;
  color: #ffffff !important;
}

.swal2-popup .form-select option:disabled {
  color: #64748b !important;
  background-color: #1a1528 !important;
}

.swal2-popup .input-group .btn {
  box-shadow: none !important;
  border-color: #443a63 !important;
}

.swal2-popup .input-group .btn:hover,
.swal2-popup .input-group .btn:focus {
  box-shadow: none !important;
  border-color: #a855f7 !important;
  color: #d8b4fe !important;
}

.btn-corp-confirm {
  background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: var(--radius-md) !important;
  padding: 0.6rem 1.75rem !important;
  border: none !important;
  box-shadow: none !important;
  transition: opacity 0.2s ease, background 0.2s ease !important;
}

.btn-corp-confirm:hover,
.btn-corp-confirm:focus {
  opacity: 0.95;
  box-shadow: none !important;
}

.btn-corp-confirm:disabled,
.btn-corp-confirm[disabled] {
  background: #3f3657 !important;
  color: #8c81a3 !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}

@media (max-width: 576px) {
  .live-clock {
    font-size: 2.2rem;
  }
  .clock-time-info {
    text-align: center !important;
  }
  .swal2-title {
    font-size: 1.25rem !important;
    padding: 0.8rem 1rem 0.2rem 1rem !important;
  }
  .swal2-popup.corp-modal-wide {
    padding: 1.2rem 0.8rem !important;
    width: 95vw !important;
  }
  .corp-custom-scroll::-webkit-scrollbar {
    width: 3px;
    height: 3px;
  }
}
