/**
 * Activity Monitor Styles
 * Keep-playing popup and toast notifications
 */

/* Popup Container */
.activity-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.activity-popup.hidden {
  opacity: 0;
  pointer-events: none;
}

.activity-popup.visible {
  opacity: 1;
  pointer-events: all;
}

/* Overlay */
.activity-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

/* Popup Content */
.activity-popup-content {
  position: relative;
  background: linear-gradient(135deg, #1a0033 0%, #2d1b4e 100%);
  border: 2px solid rgba(138, 79, 255, 0.6);
  border-radius: 12px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5),
              0 0 30px rgba(138, 79, 255, 0.3);
  max-width: 500px;
  width: 90%;
  animation: slideIn 0.3s ease;
  font-family: 'Courier New', monospace;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Header */
.activity-popup-header {
  position: relative;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(138, 79, 255, 0.3);
}

.activity-popup-header h2 {
  margin: 0;
  font-size: 24px;
  color: #8a4fff;
  text-shadow: 0 0 10px rgba(138, 79, 255, 0.5);
}

.activity-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #8a4fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.activity-popup-close:hover {
  color: #fff;
  transform: scale(1.2);
  text-shadow: 0 0 15px rgba(138, 79, 255, 0.8);
}

/* Body */
.activity-popup-body {
  padding: 24px;
  color: #fff;
}

.activity-message {
  font-size: 18px;
  margin: 0 0 12px 0;
  color: #00ffff;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}

.activity-message .time-remaining {
  font-weight: bold;
  color: #ff3366;
  text-shadow: 0 0 10px rgba(255, 51, 102, 0.6);
}

.activity-submessage {
  font-size: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Footer */
.activity-popup-footer {
  padding: 16px 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.activity-popup-footer .btn {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.activity-btn-logout {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.activity-btn-logout:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.activity-btn-renew {
  background: linear-gradient(135deg, #8a4fff 0%, #a366ff 100%);
  color: #fff;
  border: 1px solid rgba(138, 79, 255, 0.6);
  box-shadow: 0 4px 12px rgba(138, 79, 255, 0.3);
}

.activity-btn-renew:hover {
  background: linear-gradient(135deg, #9b5fff 0%, #b477ff 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 79, 255, 0.5);
}

/* Toast Notifications */
.activity-toast {
  position: fixed;
  bottom: -100px;
  right: 24px;
  background: rgba(26, 0, 51, 0.95);
  border: 1px solid;
  border-radius: 8px;
  padding: 16px 24px;
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: bottom 0.3s ease;
  z-index: 10001;
  max-width: 300px;
}

.activity-toast.show {
  bottom: 24px;
}

.activity-toast-success {
  border-color: #00ffff;
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(26, 0, 51, 0.95) 100%);
  box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
}

.activity-toast-error {
  border-color: #ff3366;
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.1) 0%, rgba(26, 0, 51, 0.95) 100%);
  box-shadow: 0 4px 20px rgba(255, 51, 102, 0.3);
}

/* Responsive */
@media (max-width: 600px) {
  .activity-popup-content {
    max-width: 95%;
  }

  .activity-popup-header h2 {
    font-size: 20px;
  }

  .activity-popup-footer {
    flex-direction: column;
  }

  .activity-popup-footer .btn {
    width: 100%;
  }

  .activity-toast {
    right: 12px;
    max-width: calc(100% - 24px);
  }

  .activity-toast.show {
    bottom: 12px;
  }
}

/* Animation for critical warning (< 1 minute) */
.activity-popup.critical .activity-popup-content {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% {
    border-color: rgba(138, 79, 255, 0.6);
  }
  50% {
    border-color: rgba(255, 51, 102, 0.8);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(255, 51, 102, 0.5);
  }
}
