/* SCAA Plus Photo Uploader - Mobile First Design */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
}

body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background: #c41e3a;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.header .logo {
  max-width: 90%;
  height: auto;
  display: block;
}

.headerTitle {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* Form */
#uploaderForm {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  flex: 1;
  max-height: calc(100vh - 200px);
}

/* Form Group */
.formGroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.formGroup label {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.formGroup input {
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.formGroup input:focus {
  outline: none;
  border-color: #c41e3a;
}

/* Label List (Vertical Button List) */
.labelList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.labelBtn {
  padding: 14px 16px;
  background: #f0f0f0;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
  text-decoration: none;
}

.labelBtn:active {
  transform: scale(0.98);
}

.labelBtn:hover {
  background: #e8e8e8;
  border-color: #c41e3a;
}

.labelBtn.used {
  background: #c41e3a;
  color: white;
  border-color: #c41e3a;
  font-weight: 600;
}

.labelBtn.used::after {
  content: "✓";
  font-weight: bold;
  margin-left: auto;
}

.labelBtn.galleryBtn {
  background: #2196F3;
  color: white;
  border-color: #2196F3;
  font-weight: 600;
  margin-top: 15px;
}

.labelBtn.galleryBtn:hover {
  background: #1976D2;
  border-color: #1976D2;
}

.labelBtn.pdfBtn {
  background: #6A1B9A;
  color: white;
  border-color: #6A1B9A;
  font-weight: 600;
  margin-top: 10px;
}

.labelBtn.pdfBtn:hover {
  background: #4A148C;
  border-color: #4A148C;
}

.labelBtn small {
  font-size: 12px;
  margin-left: 8px;
  opacity: 0.8;
}

/* Action Buttons */
.actionButtons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.btn {
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-align: center;
  width: 100%;
}

.btnPrimary {
  background: #c41e3a;
  color: white;
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.btnPrimary:active {
  transform: scale(0.98);
}

.btnPrimary:hover:not(:disabled) {
  background: #a01830;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4);
}

.btnPrimary:disabled {
  background: #ccc;
  color: #999;
  cursor: not-allowed;
  box-shadow: none;
}

.btnSecondary {
  background: #e8e8e8;
  color: #333;
  border: 2px solid #ddd;
  box-shadow: none;
}

.btnSecondary:active {
  transform: scale(0.98);
}

.btnSecondary:hover {
  background: #d0d0d0;
  border-color: #999;
}

/* Status */
.status {
  margin-top: 15px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 8px;
}

#statusText {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.progressBar {
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
}

#barFill {
  height: 100%;
  background: #c41e3a;
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 480px) {
  body {
    padding: 5px;
  }
  
  .container {
    border-radius: 0;
  }
  
  .header {
    padding: 15px;
  }
  
  .header h1 {
    font-size: 20px;
  }
  
  .header .logo {
    height: 40px;
  }
  
  #uploaderForm {
    padding: 15px;
    gap: 15px;
  }
  
  .labelBtn {
    padding: 12px 14px;
    font-size: 14px;
  }
  
  .btn {
    padding: 12px 14px;
    font-size: 15px;
  }
}
