/* Alert System Styles */

.alert-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  background-color: #000;
  border: 2px solid var(--color-primary, #00ff00);
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
  padding: 20px;
  z-index: 9999;
  color: #00ff00;
  transition: all 0.3s ease;
  font-family: "MesloLGS NF", monospace;
}

.alert-container.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -60%);
}

.alert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #00ff00;
}

.alert-title {
  margin: 0;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: #00ff00;
}

.alert-timer {
  font-size: 1.2rem;
  font-weight: bold;
  padding: 4px 10px;
  background-color: #001200;
  border: 1px solid #00ff00;
  min-width: 80px;
  text-align: center;
}

.alert-timer.urgent {
  background-color: #200000;
  color: #ff0000;
  border-color: #ff0000;
  animation: pulse 1s infinite alternate;
}

.alert-description {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 20px;
  white-space: pre-line;
  color: #ccffcc;
}

#alertDismiss {
  display: none;
}

.alert-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.alert-action-button {
  flex: 1 0 calc(50% - 10px);
  min-width: 120px;
  padding: 10px;
  border: 1px solid #00ff00;
  background-color: #001800;
  color: #00ff00;  
  font-family: "MesloLGS NF", monospace;
  font-size: 1rem;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.alert-action-button:hover {
  background-color: #002800;
  border-color: #00ff00;
}

.alert-action-button:active {
  transform: scale(0.98);
  background-color: #003800;
}

.button-number {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 18px;
  height: 18px;
  background-color: #00ff00;
  color: #000000;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.alert-dismiss {
  width: 100%;
  padding: 10px;
  border: 1px solid #007700;
  background-color: #001200;
  color: #00bb00;
  font-family: "MesloLGS NF", monospace;  
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 5px;
}

.alert-dismiss:hover {
  background-color: #002800;
  color: #00ff00;
}

/* Alert indicator badge */
.alert-indicator {
  position: fixed;
  top: 10px;
  right: 10px;
  background-color: #ff0000;
  color: white;
  border: 2px solid #770000;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  z-index: 1000;
  animation: pulse 2s infinite;
}

.alert-indicator.hidden {
  display: none;
}

/* Animations */
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

/* Mobile optimizations */
@media (max-width: 600px) {
  .alert-container {
    width: 95%;
    padding: 15px;
  }
  
  .alert-title {
    font-size: 1.2rem;
  }
  
  .alert-timer {
    font-size: 1rem;
    min-width: 70px;
  }
  
  .alert-description {
    font-size: 1rem;
  }
  
  .alert-action-button {
    flex: 1 0 100%;
  }
}

.system-message-overlay {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(62vw, 420px);
  background: linear-gradient(180deg, #0b1428 0%, #080f1d 100%);
  border: 2px solid #4fc3f7;
  box-shadow: 0 0 42px rgba(79, 195, 247, 0.35);
  padding: clamp(12px, 1.8vw, 18px);
  z-index: 10002;
  color: #dff4ff;
  font-family: "MesloLGS NF", monospace;
}

.system-message-overlay.hidden {
  display: none;
}

.system-message-header {
  font-size: clamp(0.7rem, 0.95vw, 0.8rem);
  letter-spacing: 0.12em;
  color: #7bdcff;
  margin-bottom: 6px;
}

.system-message-title {
  margin: 0 0 8px;
  font-size: clamp(0.92rem, 1.4vw, 1.06rem);
  line-height: 1.2;
  color: #ffffff;
}

.system-message-body {
  margin: 0;
  white-space: pre-wrap;
  font-size: clamp(0.76rem, 1.06vw, 0.9rem);
  line-height: 1.38;
  color: #c6e8ff;
}

.system-message-actions {
  margin-top: clamp(12px, 1.5vw, 16px);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.system-message-button {
  min-width: 128px;
  padding: 7px 10px;
  border: 1px solid #4fc3f7;
  background: #122748;
  color: #dff4ff;
  font-family: "MesloLGS NF", monospace;
  font-size: 0.8rem;
  cursor: pointer;
}

.system-message-button.primary {
  background: #1b4c7c;
  border-color: #7bdcff;
  color: #ffffff;
}

.system-message-button.secondary {
  background: #0d1e38;
  border-color: #37608d;
  color: #b6d7f3;
}

@media (max-width: 600px) {
  .system-message-overlay {
    width: min(90vw, 420px);
    padding: 10px;
  }

  .system-message-actions {
    justify-content: stretch;
  }

  .system-message-button {
    flex: 1;
    min-width: 0;
  }
}
