/* src/styles/components/modals.css */
/* === СПИННЕР === */
.spinner {
  width: 56px;
  height: 56px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #4caf50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 32px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === ПРОГРЕСС-БАР === */
.progress-bar-large {
  height: 10px;
  background: #ecf0f1;
  border-radius: 5px;
  overflow: hidden;
  margin: 10px 0;
}

.progress-fill-large {
  height: 100%;
  background: #3498db;
  width: 0%;
  transition: width 0.3s;
}

.status-text {
  font-size: 0.9em;
  margin: 10px 0;
  text-align: center;
}

/* === ШАГИ ПРОЦЕССА === */
.progress-steps {
  margin-top: 24px;
  text-align: left;
}

.step {
  margin: 6px 0;
  font-size: 1.05em;
  color: #6c757d;
}

.step::before {
  content: "• ";
  color: #adb5bd;
}

.step.active::before {
  content: "→ ";
  color: #3498db;
}

.step.completed::before {
  content: "✓ ";
  color: #28a745;
}

.step.error::before {
  content: "❌ ";
  color: #e74c3c;
}

/* === МОДАЛЬНЫЕ ОКНА === */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 8px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ecf0f1;
}

.modal-title {
  font-size: 1.3rem;
  color: #2c3e50;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #7f8c8d;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #2c3e50;
}

.modal-body {
  margin-bottom: 16px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* === УВЕДОМЛЕНИЯ === */
.alert {
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.alert-info {
  background: #e8f4fd;
  border-left: 4px solid #3498db;
  color: #2c3e50;
}

.alert-info a {
  color: #2980b9;
  font-weight: bold;
  text-decoration: none;
}

.alert-info a:hover {
  text-decoration: underline;
}

.alert-success {
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
  color: #2e7d32;
}

.alert-warning {
  background: #fff8e1;
  border-left: 4px solid #ff9800;
  color: #5d4037;
}

.alert-error {
  background: #ffebee;
  border-left: 4px solid #f44336;
  color: #c62828;
}



@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
