/* CyberShield Logout Modal - High-Class Animated Popup */

.logout-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-out, visibility 0.2s ease-out, background 0.2s ease-out, backdrop-filter 0.2s ease-out;
  pointer-events: none;
}

.logout-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
  transition: opacity 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s, background 0.25s ease, backdrop-filter 0.25s ease;
}

.logout-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(255, 255, 255, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: scale(0.85) translateY(10px);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease-out;
  overflow: hidden;
}

.logout-modal-overlay.active .logout-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease-out;
}

.logout-modal-overlay.closing .logout-modal {
  transform: scale(0.95) translateY(-8px);
  opacity: 0;
  transition: transform 0.15s ease-in, opacity 0.15s ease-in;
}

@keyframes logoutModalShine {
  0% { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}

.logout-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
  opacity: 0.6;
}

.logout-modal-content {
  padding: 28px 24px;
  text-align: center;
}

.logout-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.15));
  border: 2px solid rgba(239, 68, 68, 0.4);
  border-radius: 50%;
  animation: logoutIconPulse 2s ease-in-out infinite;
}

.logout-modal-icon i {
  font-size: 28px;
  color: #f87171;
  transition: transform 0.2s ease;
}

.logout-modal:hover .logout-modal-icon i {
  transform: scale(1.05);
}

@keyframes logoutIconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.2); }
  50% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
}

.logout-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.logout-modal-message {
  font-size: 0.95rem;
  color: #94a3b8;
  margin: 0 0 24px;
  line-height: 1.5;
}

.logout-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.logout-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  min-width: 120px;
  font-family: inherit;
}

.logout-modal-btn:active {
  transform: scale(0.98);
}

.logout-modal-btn-cancel {
  background: rgba(148, 163, 184, 0.15);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.logout-modal-btn-cancel:hover {
  background: rgba(148, 163, 184, 0.25);
  border-color: rgba(148, 163, 184, 0.3);
  transform: translateY(-1px);
}

.logout-modal-btn-logout {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.logout-modal-btn-logout:hover {
  background: linear-gradient(135deg, #f87171, #ef4444);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

.logout-modal-btn-logout:active {
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.logout-modal-btn i {
  font-size: 0.9em;
}
