/* Alarmplan Downloader Styles */

body {
  background-color: #f0f2f5;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  padding: 20px;
  color: #333;
}

.container {
  max-width: 800px;
  margin: 50px auto;
  background-color: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

h1 {
  color: #dc3545;
  margin-bottom: 20px;
  font-weight: 600;
}

.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-header {
  background-color: #dc3545;
  color: white;
  font-weight: 500;
  border-radius: 12px 12px 0 0 !important;
  padding: 12px 16px;
}

.card-body {
  padding: 20px;
}

.form-control:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.btn-primary {
  padding: 10px 20px;
  font-weight: 500;
  background-color: #dc3545;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#status {
  display: none;
  margin-top: 20px;
  padding: 15px;
  border-radius: 10px;
}

.spinner-border {
  margin-right: 10px;
}

#progressContainer {
  display: none;
  margin-top: 25px;
}

.progress {
  height: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

.progress-bar {
  background-color: #dc3545;
  transition: width 0.5s ease;
}

#progressText {
  font-size: 14px;
  color: #555;
  text-align: center;
}

.icon-container {
  text-align: center;
  margin-bottom: 20px;
}

.main-icon {
  font-size: 48px;
  color: #dc3545;
  margin-bottom: 10px;
}

.input-group-text {
  background-color: #e9ecef;
  border-color: #ced4da;
}

.form-text {
  color: #6c757d;
  font-size: 0.85rem;
  margin-top: 5px;
}

.alert {
  border-radius: 10px;
  border: none;
  position: relative;
  padding-right: 2.5rem; /* Make room for close button */
}

.alert-success {
  background-color: #d1e7dd;
  color: #0f5132;
}

.alert-danger {
  background-color: #f8d7da;
  color: #842029;
  font-weight: 500;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #dc3545;
  margin-bottom: 20px;
  font-size: 1.05rem;
  padding: 15px 20px;
}

/* Style for close button */
.btn-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0.8;
}

.btn-close:hover {
  opacity: 1;
}

.alert-info {
  background-color: #cfe2ff;
  color: #084298;
}

/* Animation for the progress bar */
@keyframes progress-bar-stripes {
  from {
    background-position: 1rem 0;
  }
  to {
    background-position: 0 0;
  }
}

.progress-bar-animated {
  animation: progress-bar-stripes 1s linear infinite;
}

.progress-bar-striped {
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-size: 1rem 1rem;
}

/* Summary statistics */
.stat-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 24px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.stat-circle:hover {
  transform: scale(1.1);
}

#resultSummary h3 {
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 5px;
  color: #333;
}

#resultSummary p {
  color: #666;
  font-size: 14px;
  margin-bottom: 0;
}

/* Fade-in animation for the summary */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

#resultSummary {
  animation: fadeIn 0.5s ease;
}