/* ===================================
   ESTILOS DE MODALES COMPARTIDOS
   Diseno consistente para todos los modales del sistema
   =================================== */

/* Modal Overlay - Fondo oscuro con blur */
.modal,
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal.show,
.modal-overlay.show {
  display: flex;
}

/* Caja del Modal */
.modal-content,
.modal-box {
  background: white;
  padding: 0;
  border-radius: 20px;
  text-align: center;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Icono del Modal */
.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  animation: scaleIn 0.5s ease;
}

.modal-icon svg {
  width: 50px;
  height: 50px;
}

.modal-icon.success,
.modal-content.success .modal-icon {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

.modal-icon.error,
.modal-content.error .modal-icon {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(244, 67, 54, 0.3);
}

.modal-icon.warning,
.modal-content.warning .modal-icon {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(255, 152, 0, 0.3);
}

.modal-icon.info,
.modal-content.info .modal-icon {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
}

/* Titulo del Modal */
.modal-box h3,
.modal-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-weight: 700;
  padding: 2rem 2rem 0;
}

/* Mensaje del Modal */
.modal-box p,
.modal-content p {
  color: #7f8c8d;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  padding: 0 2rem;
}

/* Boton del Modal */
.modal-btn {
  padding: 12px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin: 0 1rem 2rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.modal-btn:active {
  transform: translateY(0);
}

/* Botones multiples */
.modal-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-btn.secondary {
  background: linear-gradient(135deg, #757575 0%, #9e9e9e 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.modal-btn.secondary:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Boton de Cancelar */
.modal-btn-cancel {
  padding: 0.8rem 2.5rem;
  background: #ffffff;
  color: #666;
  border: 2px solid #ddd;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  width: auto;
  height: auto;
}

.modal-btn-cancel:hover {
  background: #f5f5f5;
  border-color: #999;
  color: #333;
  transform: translateY(-2px);
}

.modal-btn-cancel:active {
  transform: translateY(0);
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .modal-box {
    padding: 2rem;
    max-width: 90%;
  }

  .modal-icon {
    width: 60px;
    height: 60px;
    font-size: 2.5rem;
  }

  .modal-box h3 {
    font-size: 1.3rem;
  }

  .modal-box p {
    font-size: 0.95rem;
  }

  .modal-btn {
    padding: 0.7rem 2rem;
    font-size: 0.95rem;
  }
}

/* ===================================
   ESTILOS ESPECIFICOS - TABLERO DE ANUNCIOS
   Copiados exactamente del dashboard del empleado
   =================================== */

.modal-header-notificaciones {
  background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
}

.modal-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.modal-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-body {
  padding: 35px 35px 25px;
}

.modal-description {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 25px;
  text-align: center;
}

.modal-info h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 18px;
  font-weight: 700;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

.info-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #4CAF50;
}

.modal-footer {
  padding: 0 35px 35px;
  text-align: center;
}

.btn-iniciar {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  border: none;
  padding: 16px 40px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-iniciar:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
  background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

.btn-iniciar:active {
  transform: translateY(-1px);
}

.btn-iniciar svg {
  transition: transform 0.3s ease;
}

.btn-iniciar:hover svg {
  transform: rotate(90deg);
}

.btn-iniciar-notificaciones {
  background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
  box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.btn-iniciar-notificaciones:hover {
  background: linear-gradient(135deg, #7B1FA2 0%, #6A1B9A 100%);
  box-shadow: 0 8px 25px rgba(156, 39, 176, 0.4);
}
