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

:root {
  /* Chang Beer Theme - Green & Gold */
  --primary: #1a7d3f;
  --primary-dark: #0d5a2a;
  --primary-light: #2d9a53;
  --secondary: #145a30;
  --accent: #d4af37;
  --accent-light: #e6c55a;
  --success: #2d9a53;
  --gold: #d4af37;
  --bg-dark: #0a1f10;
  --bg-gradient: linear-gradient(135deg, #0a1f10 0%, #0d3318 50%, #0a1f10 100%);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(212, 175, 55, 0.25);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.5);
}

body {
  font-family: "Prompt", sans-serif;
  background: var(--bg-gradient);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--text-primary);
}

.container {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.header {
  text-align: center;
  margin-bottom: 32px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.logo .icon {
  font-size: 32px;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.1) rotate(10deg);
  }
}

.logo h1 {
  font-size: 28px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold), #fff6b7, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.upload-label {
  cursor: pointer;
  display: block;
}

.upload-label input[type="file"] {
  display: none;
}

.upload-area {
  border: 2px dashed var(--glass-border);
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.3s ease;
  background: rgba(26, 125, 63, 0.05);
  position: relative;
  overflow: hidden;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
}

.upload-area.has-image .upload-icon,
.upload-area.has-image .upload-text,
.upload-area.has-image .upload-hint {
  display: none;
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.upload-text {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}

.upload-hint {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.image-preview {
  display: none;
  max-width: 100%;
  max-height: 250px;
  border-radius: 12px;
  object-fit: contain;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  font-size: 18px;
  z-index: 1;
}

.input-wrapper input,
.input-wrapper textarea {
  width: 100%;
  padding: 14px 14px 14px 48px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: "Prompt", sans-serif;
  font-size: 15px;
  transition: all 0.3s ease;
}

.input-wrapper input::placeholder,
.input-wrapper textarea::placeholder {
  color: var(--text-muted);
}

.input-wrapper input:focus,
.input-wrapper textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.textarea-wrapper {
  align-items: flex-start;
}

.textarea-wrapper .input-icon {
  top: 14px;
}

.textarea-wrapper textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-family: "Prompt", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--gold);
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(212, 175, 55, 0.3),
      transparent);
  transition: left 0.5s ease;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(26, 125, 63, 0.4);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.submit-btn.loading .btn-text {
  opacity: 0;
}

.submit-btn.loading::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.success-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: linear-gradient(135deg, var(--success), var(--primary-dark));
  padding: 16px 32px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(26, 125, 63, 0.4);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  border: 2px solid var(--gold);
}

.success-message.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.success-icon {
  font-size: 24px;
}

.queue-status {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  animation: pulse 2s ease-in-out infinite;
  border: 2px solid var(--gold);
}

.queue-status.show {
  display: flex;
}

.queue-status.displaying {
  background: linear-gradient(135deg, var(--gold), #b8941f);
  animation: none;
}

.queue-icon {
  font-size: 20px;
}

.queue-text strong {
  font-size: 18px;
  margin-left: 4px;
  color: var(--gold);
}

.queue-status.displaying .queue-text strong {
  color: white;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.02);
  }
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .glass-card {
    padding: 24px;
    border-radius: 20px;
  }

  .logo h1 {
    font-size: 24px;
  }

  .upload-area {
    padding: 30px 16px;
  }

  .upload-icon {
    font-size: 40px;
  }
}