/* Paleta de colores moderna y vibrante */
/* Paleta de colores moderna y vibrante */
:root {
  --primary: #4361ee;
  --secondary: #427d6e; /* CAMBIO: Cambiado de #3a0ca3 a #427d6e */
  --success: #4cc9f0;
  --danger: #f72585;
  --warning: #f8961e;
  --info: #90e0ef;
  --light: #f8f9fa;
  --dark: #212529;
  --purple: #7209b7;
  --pink: #f72585;
  --teal: #4cc9f0;
  --indigo: #4361ee;
  --orange: #fb8500;
  --green: #06d6a0;
}

/* Estilo general y tipografía */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

/* Sidebar mejorada */
.sidebar {
  /* CAMBIO: Se modificó el gradiente del sidebar para usar la nueva paleta de colores */
  /* Original: background: linear-gradient(180deg, var(--secondary) 0%, var(--primary) 100%); */
  background: linear-gradient(180deg, #427d6e 0%, #015a5e 100%);
  color: white;
  width: 250px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.sidebar-brand {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
}

.logo-panamtrauma {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 24px;
  color: white;
}

.sidebar-brand span {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.sidebar-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.7;
  padding: 15px 20px 5px;
  margin-top: 10px;
}

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

.sidebar-menu li a {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

.sidebar-menu li a i {
  margin-right: 10px;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.sidebar-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  padding-left: 25px;
}

.sidebar-menu li.active a {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border-left: 3px solid white;
}

/* Main Content */
.main-content {
  margin-left: 250px;
  padding: 20px 30px;
  min-height: 100vh;
  transition: all 0.3s;
  background-color: #f5f7fa;
}

/* Header mejorado */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-title h1 {
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 5px;
  color: var(--secondary);
}

.header-title p {
  color: #6c757d;
  margin-bottom: 0;
}

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

.search-box {
  position: relative;
  width: 300px;
}

.search-box input {
  padding: 8px 15px 8px 40px;
  border-radius: 50px;
  border: 1px solid #e0e0e0;
  background-color: #f8f9fa;
  transition: all 0.3s;
}

.search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
}

.search-box input:focus {
  box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.15);
  border-color: var(--primary);
  background-color: white;
}

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

.notification-icon {
  position: relative;
  cursor: pointer;
}

.notification-icon i {
  font-size: 20px;
  color: #6c757d;
}

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--danger);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--primary);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info h6 {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 600;
}

.user-info span {
  font-size: 12px;
  color: #6c757d;
}

/* Cards y gráficos mejorados */
.card {
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
  background-color: white;
  margin-bottom: 20px;
}

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

.card-header {
  background-color: white;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header .card-title {
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.card-header .card-title i {
  margin-right: 10px;
  font-size: 18px;
}

.card-body {
  padding: 20px;
}

/* Iconos coloridos para tarjetas */
.fas.fa-chart-pie { color: var(--pink); }
.fas.fa-star-half-alt { color: var(--warning); }
.fas.fa-calendar-check { color: var(--green); }
.fas.fa-users { color: var(--primary); }
.fas.fa-award { color: var(--purple); }
.fas.fa-tasks { color: var(--orange); }
.fas.fa-chart-bar { color: var(--info); }
.fas.fa-file-alt { color: var(--indigo); }
.fas.fa-hourglass-half { color: var(--warning); }
.fas.fa-star { color: var(--success); }
.fas.fa-folder { color: var(--primary); }
.fas.fa-eye { color: var(--info); }
.fas.fa-sign-out-alt { color: var(--danger); }
.fas.fa-clipboard-list { color: var(--primary); }
.fas.fa-check-circle { color: var(--green); }
.fas.fa-clock { color: var(--info); }
.fas.fa-history { color: var(--indigo); }

/* Stats Cards Coloridos */
.stats-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.stats-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.stats-card .stats-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 36px;
  opacity: 0.6;
  z-index: 1;
  transition: all 0.3s;
}

.stats-card:hover .stats-icon {
  transform: scale(1.2) rotate(15deg);
  opacity: 0.8;
}

.stats-card .stats-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.9);
}

.stats-card .stats-value {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
  color: white;
}

.stats-card .stats-progress {
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.stats-card .progress {
  height: 6px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.2);
  margin-bottom: 8px;
}

.stats-card .progress-bar {
  background-color: white;
  border-radius: 3px;
}

.stats-card .stats-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

/* Colores para tarjetas estadísticas */
.stats-card.primary {
  background: linear-gradient(135deg, var(--primary) 0%, #3a56e4 100%);
}

.stats-card.info {
  background: linear-gradient(135deg, var(--teal) 0%, #36afd6 100%);
}

.stats-card.warning {
  background: linear-gradient(135deg, var(--warning) 0%, #ff7b1d 100%);
}

.stats-card.success {
  background: linear-gradient(135deg, var(--green) 0%, #05b284 100%);
}

/* Gráficos y tablas mejorados */
.chart-container {
  position: relative;
  height: 200px;
  margin: 0 auto;
}

.table {
  width: 100%;
  margin-bottom: 0;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table > :not(caption) > * > * {
  padding: 12px 15px;
  vertical-align: middle;
}

.table > thead {
  background-color: #f8f9fa;
}

.table > thead > tr > th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #6c757d;
  border-bottom: 1px solid #e9ecef;
}

.table-hover tbody tr:hover {
  background-color: rgba(67, 97, 238, 0.05);
}

/* Badges y etiquetas */
.badge {
  padding: 5px 10px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 12px;
}

.badge-primary {
  background-color: rgba(67, 97, 238, 0.15);
  color: var(--primary);
}

.badge-success {
  background-color: rgba(6, 214, 160, 0.15);
  color: var(--green);
}

.badge-warning {
  background-color: rgba(248, 150, 30, 0.15);
  color: var(--warning);
}

.badge-danger {
  background-color: rgba(247, 37, 133, 0.15);
  color: var(--danger);
}

/* Botones mejorados */
.btn {
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #3a56e4;
  border-color: #3a56e4;
  box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

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

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

/* Secciones colapsables */
.collapser-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 1px;
  cursor: pointer;
  transition: all 0.3s;
}

.collapser-header:hover {
  background-color: #e9ecef;
}

.collapser-header h5 {
  margin-bottom: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
}

.collapser-icon {
  transition: transform 0.3s;
}

.collapse.show + .collapser-header .collapser-icon {
  transform: rotate(180deg);
}

.collapser-content {
  padding: 15px 20px;
  background-color: white;
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.05);
}

/* Tarjetas de evaluadores */
.evaluator-card {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.3s;
}

.evaluator-pending {
  background-color: rgba(248, 150, 30, 0.1);
  border-left: 3px solid var(--warning);
}

.evaluator-completed {
  background-color: rgba(6, 214, 160, 0.1);
  border-left: 3px solid var(--green);
}

.evaluator-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
}

.evaluator-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.evaluator-info {
  flex: 1;
}

.evaluator-info h6 {
  font-size: 13px;
  margin-bottom: 2px;
  font-weight: 600;
}

.evaluator-info span {
  font-size: 11px;
  color: #6c757d;
}

.evaluator-status {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 20px;
  font-weight: 500;
}

/* Tarjeta de puntaje final */
.final-score-card {
  background: linear-gradient(135deg, var(--green) 0%, #05b284 100%);
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  color: white;
  box-shadow: 0 4px 8px rgba(6, 214, 160, 0.3);
}

.final-score-card .score-title {
  font-size: 12px;
  margin-bottom: 6px;
  opacity: 0.9;
}

.final-score-card .score-value {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.final-score-card .score-type {
  font-size: 11px;
  opacity: 0.9;
}

/* Toast notifications */
.toast {
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  border: none;
  overflow: hidden;
}

.toast-header {
  padding: 12px 15px;
  display: flex;
  align-items: center;
}

.toast-body {
  padding: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.toast-icon {
  width: 36px;
  height: 36px;
  background-color: rgba(6, 214, 160, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.toast-icon i {
  color: var(--green);
  font-size: 18px;
}

/* Timeline de actividades recientes */
/* Estilos mejorados para evaluaciones recientes */
.activity-timeline {
  position: relative;
  padding: 0;
}

.activity-item {
  position: relative;
  padding: 16px 0;
  margin-left: 12px;
  border-left: 2px solid rgba(var(--primary-rgb), 0.2);
  padding-left: 25px;
  transition: all 0.25s ease;
}

.activity-item:hover {
  background-color: rgba(var(--primary-rgb), 0.03);
}

.activity-item:last-child {
  border-left-color: transparent;
}

.activity-dot {
  position: absolute;
  left: -12px;
  top: 20px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.activity-dot i {
  font-size: 10px;
  color: var(--primary);
}

.activity-content {
  padding-right: 15px;
}

.activity-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 5px;
}

.activity-title strong {
  font-weight: 600;
  color: var(--primary);
}

.activity-time {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #7a8093;
}

.activity-time i {
  margin-right: 5px;
  font-size: 14px;
}

.activity-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.activity-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  background-color: rgba(var(--success-rgb), 0.1);
  color: var(--success);
}

.activity-status.completed {
  background-color: rgba(var(--success-rgb), 0.1);
  color: var(--success);
}

.activity-status i {
  font-size: 10px;
  margin-right: 3px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #7a8093;
}

.empty-state i {
  font-size: 3rem;
  color: #d1d5db;
  margin-bottom: 15px;
}

.card-footer {
  background-color: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.card-footer a {
  color: var(--primary);
  font-weight: 500;
  font-size: 13px;
}

.card-footer a:hover {
  text-decoration: none;
  color: var(--primary-dark);
}

.card-footer a i {
  transition: transform 0.2s ease;
}

.card-footer a:hover i {
  transform: translateX(3px);
}

/* Añadir variables de colores RGB para efectos de transparencia */
:root {
  --primary-rgb: 67, 97, 238;
  --success-rgb: 6, 214, 160;
  --warning-rgb: 248, 150, 30;
  --danger-rgb: 247, 37, 133;
}

/* Estado vacío mejorado visualmente */
.empty-state {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-heading {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 10px;
}

.section-heading h5 {
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.section-heading p {
  margin-bottom: 0;
  font-size: 14px;
}

/* Efectos y animaciones para elementos interactivos */
.card-header .card-title i,
.stats-card .stats-icon,
.activity-icon i,
.evaluator-card,
.btn {
  transition: transform 0.3s, color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.card:hover .card-header .card-title i {
  transform: scale(1.2) rotate(5deg);
  color: var(--primary);
}

.evaluator-card:hover {
  transform: translateX(5px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Diseño responsivo */
@media (max-width: 992px) {
  .sidebar {
    width: 60px;
    overflow: visible;
  }
  
  .sidebar-brand span,
  .sidebar-header,
  .sidebar-menu li a span {
    display: none;
  }
  
  .sidebar-menu li a {
    padding: 15px;
    justify-content: center;
  }
  
  .sidebar-menu li a i {
    margin-right: 0;
    font-size: 18px;
  }
  
  .main-content {
    margin-left: 60px;
  }
  
  .header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .header-title {
    margin-bottom: 15px;
  }
  
  .header-tools {
    width: 100%;
    justify-content: space-between;
  }
  
  .search-box {
    width: 60%;
  }
}

@media (max-width: 768px) {
  .stats-card .stats-title {
    font-size: 13px;
  }
  
  .stats-card .stats-value {
    font-size: 24px;
  }
  
  .user-avatar {
    width: 32px;
    height: 32px;
  }
  
  .user-info h6 {
    font-size: 13px;
  }
  
  .header-tools {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .search-box {
    width: 100%;
    order: 2;
  }
  
  .user-menu {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Variantes de acentos de color para iconos del sidebar */
.sidebar-menu li:nth-child(3n+1) a i {
  color: var(--teal);
}

.sidebar-menu li:nth-child(3n+2) a i {
  color: var(--warning);
}

.sidebar-menu li:nth-child(3n+3) a i {
  color: var(--pink);
}

.sidebar-menu li.active a i {
  color: white;
}

/* Animaciones para toast notifications */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.toast.show {
  animation: slideInRight 0.3s forwards;
}

/* Estilos para el reloj elegante */
.elegant-clock {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 15px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 12px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.elegant-clock:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.clock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    color: white;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(67, 97, 238, 0.3);
}

.clock-content {
    display: flex;
    flex-direction: column;
}

#elegant-time {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 0.5px;
}

.clock-date {
    font-size: 12px;
    color: #6c757d;
    font-weight: 400;
}

/* Responsive design */
@media (max-width: 992px) {
    .elegant-clock {
        padding: 6px 10px;
    }
    
    .clock-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    #elegant-time {
        font-size: 14px;
    }
    
    .clock-date {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .elegant-clock {
        margin-bottom: 10px;
        width: 100%;
        justify-content: center;
    }
}