/* Fullscreen loading overlay */
#loading-screen {
  position: fixed;
  inset: 0;
  background: #001f3f ; /* Blue background */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 9999;
  font-family: sans-serif;
  transition: opacity 0.5s ease;
}

#loading-screen img {
  width: 150px;
}

/* Spinner */
.loader {
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-top: 6px solid #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  transition: opacity 0.5s ease;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Progress bar container */
#progress-container {
  width: 200px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 1rem;
}

/* Progress bar fill */
#progress-bar {
  height: 100%;
  background: #fff;
  width: 0%;
  transition: width 0.3s ease;
}

/* Fade-out states */
.fade-out-spinner {
  opacity: 0;
}

.fade-out-screen {
  opacity: 0;
}

/* Theme Colors */
.bg-navy {
  background-color: #001f3f !important;
}
.text-navy {
  color: #001f3f !important;
}
.btn-navy {
  background-color: #001f3f;
  color: #fff;
}
.btn-navy:hover {
  background-color: #003366;
  color: #fff;
}
.btn-red {
  background-color: #dc3545;
  color: #fff;
}
.btn-red:hover {
  background-color: #a71d2a;
  color: #fff;
}

/* General */
body {
  background: #f8f9fa;
}
h1 {
  font-size: 1.8rem;
}
.card {
  border-radius: 1rem;
}

/* Canvas */
#imageCanvas {
  max-height: 400px;
  object-fit: contain;
  background: #fff;
}

/* Review Section */
#reviewSection .sample-badge {
  display: inline-flex;
  align-items: center;
  background: #e9ecef;
  border-radius: 20px;
  padding: 0.4rem 0.8rem;
  margin: 0.3rem;
  font-size: 0.9rem;
}
#reviewSection .sample-badge button {
  background: transparent;
  border: none;
  margin-left: 0.5rem;
  color: #dc3545;
  font-weight: bold;
  cursor: pointer;
}
#reviewSection .sample-badge button:hover {
  color: #a71d2a;
}

/* Table */
.table thead th {
  text-align: center;
}
.table tbody td {
  text-align: center;
}
