/**
 * ═══════════════════════════════════════════════════════
 * MODAL COMPONENTS
 * ═══════════════════════════════════════════════════════
 */

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  animation: fadeIn 0.2s ease;
}

/* Modal Dialog */
.modal-dialog {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
}

.modal-dialog.modal-large {
  max-width: 800px;
}

/* Modal Header */
.modal-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--color-background);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: var(--font-size-title-3);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
}

/* Modal Body */
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--spacing-lg);
}

/* Modal Footer */
.modal-footer {
  padding: var(--spacing-lg);
  border-top: 1px solid var(--color-background);
  flex-shrink: 0;
}

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

@keyframes slideUp {
  from { 
    transform: translateY(20px); 
    opacity: 0; 
  }
  to { 
    transform: translateY(0); 
    opacity: 1; 
  }
}

/* Icon Button */
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: var(--color-background);
}

.icon-btn:active {
  transform: scale(0.95);
}

.icon-btn ion-icon {
  font-size: 24px;
}
