/* ============================================
   VARIABLES PROFESIONALES
   ============================================ */
:root {
  --kubyka-blue: #253758;
  --kubyka-blue-dark: #1a2a42;
  --kubyka-green: #10b981;
  --kubyka-green-light: #34d399;
  --kubyka-red: #ef4444;
  --kubyka-red-light: #f87171;
  --kubyka-gray: #6b7280;
  --kubyka-bg: #f9fafb;
  --kubyka-white: #ffffff;
  --kubyka-text: #111827;
  --kubyka-text-light: #6b7280;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-xl: 0 12px 32px rgba(0,0,0,0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--kubyka-text);
  line-height: 1.5;
}

/* ============================================
   LOGIN
   ============================================ */
body.text-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #253758 0%, #1a2a42 100%);
  padding: 20px;
}

.form-signin {
  max-width: 400px;
  padding: 40px;
  width: 100%;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.logo {
  margin: 0 auto 40px auto;
  background: url(../img/logo_kubyka.svg) center/contain no-repeat;
  width: 250px;
  height: 75px;
}

.btn-primary {
  background-color: var(--kubyka-blue) !important;
  border-color: var(--kubyka-blue) !important;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--kubyka-blue-dark) !important;
  transform: translateY(-1px);
}




/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-container {
  min-height: 100vh;
  background: #ffffff url(../img/fondoApp.png) repeat;
  padding-bottom: 60px;
}

/* HEADER CON FONDO AZUL - NO TOCAR */
.header-background {
  background: linear-gradient(135deg, #253758 0%, #1a2a42 100%);
  height: 200px;
  padding: 25px 20px 0 20px;
  color: white;
  position: relative;
}

.header-content {
  max-width: 600px;
  margin: 0 auto;
}

.header-top-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 30px;
  gap: 15px;
}


.header-top-bar > div:last-child {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: end;
}

.header-top-bar .user-name {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  text-align: left;
}

.logo-centered {
  width: 48px;
  height: 48px;
  background: url(../img/ku.svg) center/contain no-repeat;
  display: block;
  justify-self: center;
}

.btn-logout {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  justify-self: end;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* CONTENIDO SUPERPUESTO */
.content-overlay {
  position: relative;
  margin-top: -120px;
  padding: 0 20px 40px 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
/* CONTENIDO SUPERPUESTO */
.content-overlay {
  position: relative;
  margin-top: -120px;
  padding: 0 20px 40px 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* CARD PRINCIPAL */
.main-clock-card {
  background: var(--kubyka-white);
  border-radius: var(--radius-xl);
  padding: 30px 30px;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
  text-align: center;
}

/* FECHA CON ICONO */
.date-with-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--kubyka-text-light);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.date-with-icon i {
  font-size: 1rem;
  opacity: 0.8;
}

/* RELOJ MODERNO MÁS PEQUEÑO */
.modern-clock {
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--kubyka-text);
  margin-bottom: 25px;
  font-family: 'SF Pro Display', -apple-system, sans-serif;
  letter-spacing: 3px;
  line-height: 1;
}

/* BOTÓN CIRCULAR CON ANILLO DE PROGRESO */
.circular-button-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 0px auto;
}

.progress-ring {
  transform: rotate(-90deg);
  position: absolute;
  top: 0;
  left: 0;
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.5s ease;
  transform-origin: center;
}

.circular-action-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 1rem;
}

.circular-action-btn i {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.btn-start {
  background: var(--kubyka-white);
  color: var(--kubyka-green);
  border: 4px solid var(--kubyka-green);
}

.btn-start:hover {
  background: var(--kubyka-green);
  color: white;
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.btn-stop {
  background: var(--kubyka-white);
  color: var(--kubyka-red);
  border: 4px solid var(--kubyka-red);
}

.btn-stop:hover {
  background: var(--kubyka-red);
  color: white;
  transform: scale(1.05);
  box-shadow: var(--shadow-xl);
}

.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* CONTADOR TIEMPO TRANSCURRIDO */
.time-counter-card {
  background: #e9ebf0;
  border-radius: var(--radius-md);
  padding: 20px 20px;
  margin-bottom: 20px;
  text-align: center;
  border: none;
  box-shadow: none;
}

.time-counter-label {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.time-counter-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--kubyka-blue);
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
}

/* CARDS INICIO/FIN */
.time-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.time-info-card {
  background: #e9ebf0;
  border-radius: var(--radius-md);
  padding: 20px 20px;
  text-align: center;
  box-shadow: none;
  border: none;
}

.time-info-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.time-info-value {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--kubyka-blue);
  font-family: 'Courier New', monospace;
}

/* STATS GRID */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--kubyka-white);
  border-radius: var(--radius-md);
  padding: 25px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid #f3f4f6;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--kubyka-blue);
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--kubyka-text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* HISTÓRICO */
.history-card {
  background: var(--kubyka-white);
  border-radius: var(--radius-md);
  padding: 30px 25px;
  box-shadow: var(--shadow-md);
  border: 1px solid #f3f4f6;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.history-header h3 {
  font-size: 1.2rem;
  color: var(--kubyka-blue);
  margin: 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.month-filter {
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-sm);
  padding: 8px 15px;
  font-size: 0.9rem;
  transition: var(--transition);
  background: white;
}

.month-filter:focus {
  outline: none;
  border-color: var(--kubyka-blue);
  box-shadow: 0 0 0 3px rgba(37, 55, 88, 0.1);
}

.table-responsive {
  margin-top: 15px;
  overflow-x: auto;
}

.table-fichajes {
  width: 100%;
  font-size: 0.9rem;
  border-collapse: separate;
  border-spacing: 0;
}

.table-fichajes thead {
  background: linear-gradient(135deg, var(--kubyka-blue) 0%, var(--kubyka-blue-dark) 100%);
  color: white;
}

.table-fichajes th {
  padding: 14px 12px;
  font-weight: 600;
  text-align: left;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

.table-fichajes th:first-child {
  border-top-left-radius: var(--radius-sm);
}

.table-fichajes th:last-child {
  border-top-right-radius: var(--radius-sm);
}

.table-fichajes td {
  padding: 14px 12px;
  border-bottom: 1px solid #f3f4f6;
  color: var(--kubyka-text);
}

.table-fichajes tbody tr {
  transition: var(--transition);
}

.table-fichajes tbody tr:hover {
  background: #f9fafb;
}

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

.badge-mode {
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  display: inline-block;
}

.badge-presencial {
  background: var(--kubyka-blue);
}

.badge-teletrabajo {
  background: #7c3aed;
}

/* BOTTOM NAV */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--kubyka-white);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  height: 60px;
  z-index: 1000;
  border-top: 1px solid #f3f4f6;
}

.nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--kubyka-text-light);
  transition: var(--transition);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  flex: 1;
  max-width: 100px;
}

.nav-item i {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.nav-item.active {
  color: var(--kubyka-blue);
}

.nav-item:hover {
  color: var(--kubyka-blue);
  background: rgba(37, 55, 88, 0.05);
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px 30px;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  text-align: center;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.modal-icon.start {
  color: var(--kubyka-green);
}

.modal-icon.stop {
  color: var(--kubyka-red);
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--kubyka-text);
  margin-bottom: 25px;
}

.modal-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.modal-btn {
  padding: 14px 25px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.modal-btn-cancel {
  background: #f3f4f6;
  color: var(--kubyka-text);
}

.modal-btn-cancel:hover {
  background: #e5e7eb;
}

.modal-btn-confirm {
  background: var(--kubyka-blue);
  color: white;
}

.modal-btn-confirm:hover {
  background: var(--kubyka-blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ALERTAS */
#alertContainer {
  margin-top: 20px;
}

.alert {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  border: none;
  box-shadow: var(--shadow-sm);
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .modern-clock {
    font-size: 3rem;
  }
  
.form-signin {
    margin: 20px !important;
}
	
  .circular-button-wrapper {
    width: 160px;
    height: 160px;
  }
  
  .circular-action-btn {
    width: 140px;
    height: 140px;
  }
  
  .circular-action-btn i {
    font-size: 2rem;
  }
  
  .time-counter-value {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
}

/* UTILIDADES */
.d-none { display: none !important; }
.text-center { text-align: center; }

/* TAB CONTENT */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ============================================
   ADMIN PANEL - ESTRUCTURA CORRECTA
   ============================================ */

/* BODY FONDO GRIS */
.admin-body {
  background: #f8f9fa;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* WRAPPER FULL-WIDTH */
.admin-wrapper {
  width: 100%;
  min-height: 100vh;
  padding: 50px 0px 40px 0px;
}

/* CONTENEDOR BLANCO CENTRADO */
.admin-container {
  max-width: 1150px;
  margin: 0 auto;
  background: white;
  border-radius: 24px;
  box-shadow: 50px 0px 90px rgba(0, 0, 0, 0.08);
  display: flex;
  overflow: hidden;
  min-height: calc(100vh - 160px);
}

/* ============================================
   NAV LATERAL 70PX
   ============================================ */
.admin-nav {
  width: 70px;
  background: #e3e6ed;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

/* LOGO 70X70 */
.nav-logo {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--kubyka-blue);
  flex-shrink: 0;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

/* ICONOS NAV */
.nav-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0;
  width: 100%;
  align-items: center;
}

.nav-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--kubyka-blue);
  text-decoration: none;
  border-radius: 12px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: none;
}

.nav-icon i {
  font-size: 1.4rem;
}

.nav-icon:hover {
  background: rgba(37, 55, 88, 0.08);  /* Solo hover con gris transparente */
}

.nav-icon.active {
  background: white;  /* Solo el activo con fondo blanco */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* LOGOUT NAV */
.nav-logout {
  margin-top: auto;
  margin-bottom: 20px;
}

/* ============================================
   CONTENIDO DERECHA
   ============================================ */
.admin-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  overflow: hidden;
}

/* ============================================
   HEADER 70PX
   ============================================ */
.admin-header {
  height: 70px;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--kubyka-text);
  margin: 0;
  line-height: 1.2;
}

.header-datetime {
  font-size: 0.8rem;
  color: var(--kubyka-text-light);
  font-weight: 500;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--kubyka-text);
  margin: 0;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-my-day {
  background: rgba(37, 55, 88, 0.08);
  color: var(--kubyka-blue);
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-my-day:hover {
  background: rgba(37, 55, 88, 0.12);
  color: var(--kubyka-blue);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--kubyka-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-weight: 600;
  color: var(--kubyka-text);
  font-size: 0.95rem;
}

.user-role {
  font-size: 0.8rem;
  color: var(--kubyka-text-light);
}

/* ============================================
   CONTENIDO MAIN
   ============================================ */
.admin-main {
  flex: 1;
  padding: 40px 30px;
  background: white;
  overflow-y: auto;
}

/* ============================================
   TABS
   ============================================ */
.tab-content {
  display: none;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   STATS CARDS
   ============================================ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: #e9ebf0;
  border-radius: 16px;
  padding: 25px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition);
}

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

.stat-card.primary {
  background: linear-gradient(135deg, var(--kubyka-blue) 0%, var(--kubyka-blue-dark) 100%);
  color: white;
}

.stat-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(37, 55, 88, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--kubyka-blue);
  flex-shrink: 0;
}

.stat-card.primary .stat-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

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

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--kubyka-blue);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-card.primary .stat-value {
  color: white;
}

.stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.stat-card.primary .stat-label {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   CONTENT CARDS
   ============================================ */
.content-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #f3f4f6;
  overflow: hidden;
  margin-bottom: 30px;
}

.card-header {
  padding: 20px 25px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--kubyka-blue);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body {
  padding: 25px;
}

/* FILTROS */
.filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.filters .form-control {
  width: auto;
  min-width: 160px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.9rem;
  transition: var(--transition);
  background: #f9fafb;
}

.filters .form-control:focus {
  outline: none;
  border-color: var(--kubyka-blue);
  box-shadow: 0 0 0 3px rgba(37, 55, 88, 0.1);
  background: white;
}

/* BOTONES */
.btn-primary {
  background: var(--kubyka-blue);
  color: white;
  border: none;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.btn-primary:hover {
  background: var(--kubyka-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 55, 88, 0.2);
}

.btn-refresh {
  background: #e9ebf0;
  color: var(--kubyka-text);
  border: none;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.btn-refresh:hover {
  background: #dfe1e6;
}

.btn-action {
  background: none;
  border: none;
  color: var(--kubyka-blue);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
}

.btn-action:hover {
  background: rgba(37, 55, 88, 0.08);
}

.btn-action.danger {
  color: var(--kubyka-red);
}

.btn-action.danger:hover {
  background: rgba(239, 68, 68, 0.08);
}

/* ============================================
   TABLA
   ============================================ */
.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

.data-table thead {
  background: linear-gradient(135deg, var(--kubyka-blue) 0%, var(--kubyka-blue-dark) 100%);
  color: white;
}

.data-table th {
  padding: 14px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.data-table th:first-child {
  border-top-left-radius: 10px;
}

.data-table th:last-child {
  border-top-right-radius: 10px;
}

.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #f3f4f6;
  color: var(--kubyka-text);
}

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

.data-table tbody tr:hover {
  background: #f9fafb;
}

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

/* BADGES */
.badge-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

.badge-dentro {
  background: #d4edda;
  color: #155724;
}

.badge-fuera {
  background: #f8d7da;
  color: #721c24;
}

.badge-pendiente {
  background: #fff3cd;
  color: #856404;
}

.badge-active {
  background: #d4edda;
  color: #155724;
}

.badge-inactive {
  background: #e2e3e5;
  color: #6c757d;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .admin-wrapper {
    padding: 40px 15px;
  }
  
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-container {
    flex-direction: column;
  }
  
  .admin-nav {
    width: 100%;
    flex-direction: row;
    height: 70px;
  }
  
  .nav-logo {
    width: 70px;
  }
  
  .nav-links {
    flex-direction: row;
    padding: 0;
    justify-content: center;
  }
  
  .nav-logout {
    margin: 0 0 0 auto;
    margin-right: 10px;
  }
  
  .admin-header {
    flex-direction: column;
    height: auto;
    padding: 15px 20px;
    gap: 10px;
  }
  
  .header-user {
    width: 100%;
    justify-content: space-between;
  }
  
  .admin-main {
    padding: 30px 20px;
  }
  
  .stats-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.3rem;
  }
  
  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filters {
    width: 100%;
  }
  
  .filters .form-control {
    width: 100%;
  }
}




/* END ADMIN*/

.btn-admin-panel {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-admin-panel:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: white;
}


.btn-back-dashboard {
  background: rgba(37, 55, 88, 0.1);
  color: var(--kubyka-blue);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-back-dashboard:hover {
  background: rgba(37, 55, 88, 0.15);
  color: var(--kubyka-blue);
}



/* ============================================
   MODAL EDITAR EMPLEADO
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-content-large {
  background: white;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
  padding: 25px 30px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--kubyka-blue);
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--kubyka-text-light);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  background: #f3f4f6;
}

.modal-body {
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--kubyka-text);
  font-size: 0.9rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.modal-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 30px;
}

.btn-secondary {
  background: #f3f4f6;
  color: var(--kubyka-text);
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

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


/* ============================================
   BOTONES DE ICONOS Y TOOLTIPS
   ============================================ */
.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

/* Tooltips solo en iconos de estado */
.data-table td i[title] {
  cursor: help;
}

/* Botones con cursor normal */
.btn-icon {
  cursor: pointer !important;
}

/* Columna acciones más compacta */
.data-table td:last-child {
  white-space: nowrap;
}

/* Iconos de estado centrados */
.data-table td i {
  cursor: help;
}