/* Custom Alert Styles - Moved from inline JavaScript */

.custom-alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10002;
}

/* Submission success popup specific overlay */
.submission-success-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
}

.custom-alert-box {
  color: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.custom-alert-success {
  background: linear-gradient(135deg, #1a2e1a 0%, #2d442d 100%);
  border: 2px solid #4ecdc4;
  box-shadow: 0 0 30px rgba(78, 205, 196, 0.3);
}

/* Submission success popup specific */
.submission-success-popup {
  background: #1a1a2e;
  border: 2px solid #4caf50;
  border-radius: 10px;
  padding: 30px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 0 30px rgba(76, 175, 80, 0.3);
}

.submission-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: #4caf50;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
}

.submission-success-message {
  color: #fff;
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

.submission-success-submessage {
  color: #aaa;
  font-size: 16px;
  margin-bottom: 25px;
  line-height: 1.5;
}

.submission-success-button {
  background: #4caf50;
  color: white;
  border: none;
  padding: 12px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submission-success-button:hover {
  background: #45a049;
  transform: scale(1.05);
}

.submission-success-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.custom-alert-error {
  background: linear-gradient(135deg, #2e1a1a 0%, #442d2d 100%);
  border: 2px solid #ff6b6b;
  box-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
}

.custom-alert-info {
  background: linear-gradient(135deg, #1a2e2e 0%, #2d4444 100%);
  border: 2px solid #64ffda;
  box-shadow: 0 0 30px rgba(100, 255, 218, 0.3);
}

.custom-alert-loading {
  background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
  border: 2px solid #4a90e2;
  box-shadow: 0 0 30px rgba(74, 144, 226, 0.3);
  padding: 40px;
}

.custom-alert-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.custom-alert-message {
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.custom-alert-button {
  background: linear-gradient(135deg, #4ecdc4 0%, #64ffda 100%);
  color: #0a0a0f;
  border: none;
  padding: 12px 35px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(78, 205, 196, 0.4);
}

.custom-alert-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #64ffda 0%, #4ecdc4 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(78, 205, 196, 0.6);
}

.custom-alert-error .custom-alert-button {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
}

.custom-alert-error .custom-alert-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff5252 0%, #ff6b6b 100%);
  box-shadow: 0 6px 30px rgba(255, 107, 107, 0.6);
}

.custom-alert-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.upload-progress-bar {
  margin-top: 15px;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.upload-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #4a90e2 0%, #66b3ff 100%);
  transition: width 0.3s ease;
}

.custom-alert-box .progress-text {
  font-size: 14px;
  margin-top: 8px;
  opacity: 0.8;
  text-align: center;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .custom-alert-overlay {
    padding: 20px;
  }

  .custom-alert-box {
    max-width: 100%;
    padding: 25px;
  }

  .custom-alert-icon {
    font-size: 36px;
  }

  .custom-alert-message {
    font-size: 16px;
  }

  .custom-alert-button {
    padding: 8px 25px;
    font-size: 14px;
  }
}

/* Small Mobile Responsive Styles */
@media (max-width: 480px) {
  .custom-alert-box {
    padding: 20px;
  }

  .custom-alert-icon {
    font-size: 32px;
  }

  .custom-alert-message {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .custom-alert-button {
    padding: 8px 20px;
    font-size: 13px;
  }
}

/* Very Small Mobile Responsive Styles */
@media (max-width: 360px) {
  .custom-alert-box {
    padding: 15px;
  }

  .custom-alert-message {
    font-size: 13px;
  }
}

/* Loading spinner animation */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(78, 205, 196, 0.2);
  border-top: 4px solid #4ecdc4;
  border-radius: 50%;
  animation: loadingSpin 1s ease-in-out infinite;
  margin: 0 auto 20px;
}

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