/* Virus alert — fake Windows 98 system dialog */

.virus-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.virus-overlay[hidden] {
  display: none;
}

.virus-window {
  position: relative;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
  width: 480px;
  max-width: 100%;
  font-family: 'MS Sans Serif', 'Tahoma', Arial, sans-serif;
  color: #000;
}

.virus-window__titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: #ffffff;
  padding: 4px 6px;
  font-weight: bold;
  font-size: 0.85rem;
}

.virus-window__title {
  letter-spacing: 0.02em;
}

.virus-window__chrome {
  display: flex;
  gap: 2px;
}

.virus-window__chrome-btn {
  width: 22px;
  height: 22px;
  background: #c0c0c0;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  color: #000;
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.virus-window__chrome-btn:active {
  border-color: #808080 #ffffff #ffffff #808080;
}

.virus-window__chrome-btn--close {
  font-size: 0.8rem;
}

.virus-window__body {
  padding: 1.5rem 1.25rem 1.25rem;
}

.virus-window__alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.virus-window__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: #ffeb3b;
  border: 2px solid #000;
  color: #d32f2f;
  font-size: 2.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  animation: virus-pulse 0.6s ease-in-out infinite alternate;
}

@keyframes virus-pulse {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.virus-window__text {
  flex: 1;
  min-width: 0;
}

.virus-window__heading {
  font-family: 'Arial Black', Impact, sans-serif;
  font-size: 1.3rem;
  color: #d32f2f;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.virus-window__detected {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  margin: 0 0 0.25rem;
  color: #000;
}

.virus-window__risk {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
  color: #d32f2f;
  font-weight: bold;
}

.virus-window__msg {
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
  color: #000;
}

.virus-window__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}

.btn-virus-fix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: #c0c0c0;
  color: #000;
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  padding: 0.75rem 1rem;
  border: 2px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.btn-virus-fix i {
  font-size: 1.1rem;
  color: #000;
}

.btn-virus-fix:hover {
  background: #d0d0d0;
  color: #000;
}

.btn-virus-fix:active {
  border-color: #808080 #ffffff #ffffff #808080;
}

.btn-virus-ignore {
  background: transparent;
  color: #555;
  border: none;
  font-family: 'MS Sans Serif', Arial, sans-serif;
  font-size: 0.75rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.25rem;
}

.btn-virus-ignore:hover {
  color: #000;
}

@media (max-width: 480px) {
  .virus-window {
    width: 100%;
  }

  .virus-window__body {
    padding: 1rem;
  }

  .virus-window__alert {
    gap: 0.75rem;
  }

  .virus-window__icon {
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
  }

  .virus-window__heading {
    font-size: 1rem;
  }

  .virus-window__detected,
  .virus-window__risk {
    font-size: 0.75rem;
  }

  .virus-window__msg {
    font-size: 0.8rem;
  }

  .btn-virus-fix {
    font-size: 0.8rem;
    padding: 0.6rem 0.75rem;
  }
}