/* Loading Skeleton Styles for Submit Evidence Page */

/* Loading skeleton container - shown during initial page load */
.loading-skeleton-container {
  min-height: 100vh;
  padding: 20px;
  background: #0a0a0f;
  position: relative;
  overflow: hidden;
}

/* Hide actual content during loading */
.loading-skeleton-container.active ~ .form-container,
.loading-skeleton-container.active ~ .section-navigation {
  display: none !important;
}

/* Ensure form is hidden initially */
.form-container,
.section-navigation {
  display: none;
}

/* Skeleton base styles */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(20, 20, 30, 0.8) 25%,
    rgba(30, 30, 40, 0.8) 50%,
    rgba(20, 20, 30, 0.8) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
  position: relative;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Skeleton components */
.skeleton-form-section {
  max-width: 800px;
  margin: 0 auto 30px;
  padding: 30px;
  background: rgba(20, 20, 30, 0.5);
  border: 1px solid rgba(78, 205, 196, 0.1);
  border-radius: 12px;
}

.skeleton-title {
  height: 32px;
  width: 60%;
  margin-bottom: 15px;
}

.skeleton-description {
  height: 20px;
  width: 80%;
  margin-bottom: 25px;
}

.skeleton-rules-container {
  padding: 20px;
  background: rgba(15, 15, 25, 0.5);
  border-radius: 8px;
  margin-bottom: 20px;
}

.skeleton-rule {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.skeleton-rule-icon {
  width: 20px;
  height: 20px;
  margin-right: 15px;
  border-radius: 50%;
}

.skeleton-rule-text {
  height: 16px;
  flex: 1;
}

.skeleton-checkbox-container {
  display: flex;
  align-items: center;
  margin-top: 25px;
}

.skeleton-checkbox {
  width: 24px;
  height: 24px;
  margin-right: 15px;
  border-radius: 4px;
}

.skeleton-checkbox-label {
  height: 18px;
  width: 200px;
}

.skeleton-button {
  height: 48px;
  width: 200px;
  margin-top: 25px;
  border-radius: 8px;
}

/* Section navigation skeleton */
.skeleton-section-nav {
  max-width: 800px;
  margin: 0 auto 20px;
  padding: 15px;
  background: rgba(20, 20, 30, 0.5);
  border: 1px solid rgba(78, 205, 196, 0.1);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skeleton-current-section {
  display: flex;
  align-items: center;
}

.skeleton-section-label {
  height: 16px;
  width: 100px;
  margin-right: 10px;
}

.skeleton-section-name {
  height: 18px;
  width: 150px;
}

.skeleton-dropdown-btn {
  height: 36px;
  width: 140px;
  border-radius: 6px;
}

/* Form input skeletons */
.skeleton-input-group {
  margin-bottom: 20px;
}

.skeleton-input-label {
  height: 16px;
  width: 120px;
  margin-bottom: 8px;
}

.skeleton-input {
  height: 44px;
  width: 100%;
  border-radius: 6px;
}

.skeleton-textarea {
  height: 120px;
  width: 100%;
  border-radius: 6px;
}

/* Loading message */
.skeleton-loading-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.95);
  padding: 30px 50px;
  border-radius: 12px;
  border: 2px solid rgba(78, 205, 196, 0.3);
  box-shadow: 0 0 30px rgba(78, 205, 196, 0.2);
}

.skeleton-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;
}

.skeleton-loading-text {
  color: #c0c0c0;
  font-size: 18px;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 1px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .skeleton-form-section {
    padding: 20px;
  }

  .skeleton-title {
    height: 28px;
    width: 70%;
  }

  .skeleton-description {
    width: 90%;
  }

  .skeleton-section-nav {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .loading-skeleton-container {
    padding: 15px;
  }

  .skeleton-form-section {
    padding: 15px;
  }

  .skeleton-loading-message {
    padding: 20px 30px;
  }

  .skeleton-loading-text {
    font-size: 16px;
  }
}

/* Skeleton rule text width variations */
.skeleton-rule-text.width-85 {
  width: 85%;
}
.skeleton-rule-text.width-75 {
  width: 75%;
}
.skeleton-rule-text.width-90 {
  width: 90%;
}

/* Visibility classes for form elements */
.loading-skeleton-container.hidden {
  display: none !important;
}
.form-container.visible {
  display: block !important;
}
.section-navigation.visible {
  display: block !important;
}

/* Fade out animation when content is ready */
.loading-skeleton-container.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}
