/* Modal overlay */
.material-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

.material-modal-dialog {
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  width: 95%;
  max-width: 1100px;
  max-height: 85vh;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  animation: scaleIn 0.2s ease;
}

/* Header */
.material-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
}

.material-modal-header h3 {
  margin: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 1rem;
}

/* Close */
.material-modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--md-default-fg-color);
  opacity: 0.8;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.material-modal-close:hover {
  opacity: 1;
}

/* Body */
.material-modal-body {
  padding: 2rem;
  overflow-y: auto;
  white-space: pre-wrap;
  font-family: monospace;
}

/* Mobile */
@media (max-width: 768px) {
  .material-modal-dialog {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .material-modal-body {
    padding: 1.2rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
