/* Client Mobile Portal Style — 2L Support PWA */

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

/* Mobile Wrapper */
.mobile-container {
  width: 100%;
  max-width: 480px;
  background-color: var(--bg-surface);
  min-height: 100vh;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
}

/* Header styling */
.pwa-header {
  padding: var(--space-5) var(--space-4);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  text-align: center;
}

.logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}

.logo-dot {
  width: 10px;
  height: 10px;
  background: var(--color-brand-red);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-glow-red);
}

.logo-area h1 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  margin: 0;
}

.header-subtitle {
  font-size: var(--text-xs);
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Content Area */
.pwa-content {
  padding: var(--space-4);
  flex: 1;
}

/* Form Card */
.form-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.card-header {
  margin-bottom: var(--space-5);
  text-align: center;
}

.card-header h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: var(--text-main);
}

.card-header p {
  font-size: var(--text-sm);
  color: var(--text-sub);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* Form controls */
.ticket-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-sub);
}

.form-input {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-4);
  background-color: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: var(--border-color-focus);
  box-shadow: 0 0 0 3px rgba(178, 43, 36, 0.12);
}

textarea.form-input {
  resize: vertical;
}

/* Custom Upload Zone */
.upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  cursor: pointer;
  color: var(--text-sub);
  transition: all var(--transition-fast);
}

.upload-zone:hover {
  border-color: var(--color-brand-red);
  background-color: rgba(178, 43, 36, 0.02);
  color: var(--color-brand-red);
}

.upload-icon {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.upload-zone:hover .upload-icon {
  color: var(--color-brand-red);
}

.upload-zone span {
  font-size: var(--text-xs);
  font-weight: 600;
}

/* Image preview section */
.image-preview-list {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.image-preview {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  font-weight: bold;
}

.image-preview-remove:hover {
  background-color: rgba(239, 68, 68, 0.9);
}

/* Buttons */
.btn {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  width: 100%;
  box-sizing: border-box;
}

.btn-primary {
  background-color: var(--color-brand-red);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-brand-red-hover);
  box-shadow: var(--shadow-glow-red);
}

/* Spinner for Loading State */
.btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Status Badge Components */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-assigned {
  color: var(--color-status-assigned);
  background-color: var(--color-status-assigned-bg);
  border-color: var(--color-status-assigned);
}

.badge-progress {
  color: var(--color-status-progress);
  background-color: var(--color-status-progress-bg);
  border-color: var(--color-status-progress);
}

.badge-review {
  color: var(--color-status-review);
  background-color: var(--color-status-review-bg);
  border-color: var(--color-status-review);
}

.badge-success {
  color: var(--color-status-success);
  background-color: var(--color-status-success-bg);
  border-color: var(--color-status-success);
}

.badge-danger {
  color: var(--color-status-danger);
  background-color: var(--color-status-danger-bg);
  border-color: var(--color-status-danger);
}

/* Secondary Button */
.btn-secondary {
  background-color: var(--bg-surface-hover);
  color: var(--text-sub);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-app);
  color: var(--text-main);
}
