/* Bug Reporter — MeowMeow Brand CSS */
/* Mobile-first, max 600px container */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  min-height: 100vh;
  padding: 16px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.header h1 {
  font-size: 20px;
  font-weight: 700;
  color: #ff6600;
}

/* Language toggle */
.lang-toggle {
  font-size: 13px;
  color: #ff6600;
  text-decoration: underline;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: rgba(255, 102, 0, 0.1);
}

/* Card */
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  padding: 24px;
  margin-bottom: 16px;
}

/* Password gate */
.gate-title {
  text-align: center;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 700;
  color: #ff6600;
}

.gate-subtitle {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-bottom: 24px;
}

/* Form elements */
.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

label .required {
  color: #e53935;
  margin-left: 3px;
}

input[type='text'],
input[type='password'],
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 15px;
  color: #333;
  background: #fff;
  transition: border-color 0.2s;
  font-family: inherit;
}

input[type='text']:focus,
input[type='password']:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #ff6600;
  box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.15);
}

input.invalid,
select.invalid,
textarea.invalid {
  border-color: #e53935;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* File upload */
.file-upload-area {
  border: 2px dashed #ddd;
  border-radius: 4px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.file-upload-area:hover {
  border-color: #ff6600;
}

.file-upload-area input[type='file'] {
  width: 100%;
}

.file-hint {
  font-size: 12px;
  color: #888;
  margin-top: 6px;
}

.file-preview {
  margin-top: 8px;
  font-size: 13px;
  color: #555;
}

.file-preview li {
  list-style: none;
  padding: 2px 0;
}

/* Submit button */
.btn-primary {
  display: block;
  width: 100%;
  height: 48px;
  background: #ff6600;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    opacity 0.2s;
  margin-top: 8px;
}

.btn-primary:hover {
  background: #e55a00;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading overlay */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  z-index: 100;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
  color: #ff6600;
}

.loading-overlay.active {
  display: flex;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f0e0d0;
  border-top-color: #ff6600;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success page */
.success-icon {
  text-align: center;
  font-size: 48px;
  margin-bottom: 16px;
}

.success-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 8px;
}

.success-note {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-bottom: 16px;
}

.ref-box {
  background: #f1f8e9;
  border: 1px solid #a5d6a7;
  border-radius: 6px;
  padding: 14px 16px;
  text-align: center;
  margin-bottom: 16px;
}

.ref-label {
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
}

.ref-number {
  font-size: 20px;
  font-weight: 700;
  color: #2e7d32;
  letter-spacing: 1px;
}

.btn-secondary {
  display: block;
  width: 100%;
  height: 44px;
  background: #fff;
  color: #ff6600;
  border: 1.5px solid #ff6600;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  text-align: center;
  line-height: 41px;
}

.btn-secondary:hover {
  background: rgba(255, 102, 0, 0.06);
}

/* Section divider */
.section-divider {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 0.5px;
  margin: 20px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}

/* Utility */
.hidden {
  display: none !important;
}

.mt-4 {
  margin-top: 4px;
}

.mt-8 {
  margin-top: 8px;
}
