.modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
  animation: modalFadeIn 0.2s ease-out;
}

.modalContent {
  background: var(--color-bg-secondary);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 25px var(--color-bg-overlay);
  border: 1px solid var(--color-border);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--color-text-primary);
  font-family: monospace;
  animation: modalSlideIn 0.2s ease-out;
}

.modalSmall {
  width: 90%;
  max-width: 400px;
}

.modalMedium {
  width: 90%;
  max-width: 600px;
}

.modalLarge {
  width: 90%;
  max-width: 800px;
}

.modalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-secondary);
  flex-shrink: 0;
}

.modalTitle {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.modalCloseButton {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  transition: color 0.2s, background-color 0.2s;
}

.modalCloseButton:hover {
  color: var(--color-text-primary);
  background-color: var(--color-border);
}

.modalCloseButton:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.modalBody {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@media (max-width: 768px) {
  .modalContent { margin: 10px; }
  .modalSmall,
  .modalMedium,
  .modalLarge {
    width: calc(100% - 20px);
    max-width: none;
  }
  .modalHeader { padding: 12px 16px; }
  .modalBody { padding: 16px; }
}
