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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: #1a1a1a;
  background: #f5f5f5;
  min-height: 100vh;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #1a1a2e;
  color: white;
}

.header h1 {
  font-size: 22px;
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.btn-back {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
}

.btn-back:hover {
  background: rgba(255,255,255,0.1);
}

.btn-logout {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.btn-logout:hover {
  background: rgba(255,255,255,0.1);
}

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

.form-group label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 20px;
  border: 2px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.form-input:disabled {
  background: #f0f0f0;
  color: #999;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
}

.btn-primary:disabled {
  background: #93c5fd;
  cursor: not-allowed;
}

.btn-secondary {
  background: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background: #4b5563;
}

.btn-full {
  width: 100%;
}

/* Dashboard nav cards */
.nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59,130,246,0.15);
}

.nav-card .icon {
  font-size: 36px;
  margin-bottom: 12px;
}

/* Status banner */
.status-banner {
  padding: 20px;
  border-radius: 10px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 20px 0;
  display: none;
}

.status-banner.success {
  background: #dcfce7;
  color: #166534;
  border: 2px solid #22c55e;
  display: block;
}

.status-banner.error {
  background: #fef2f2;
  color: #991b1b;
  border: 2px solid #ef4444;
  display: block;
}

.status-banner.warning {
  background: #fefce8;
  color: #854d0e;
  border: 2px solid #eab308;
  display: block;
}

.status-banner .status-detail {
  font-size: 16px;
  font-weight: 400;
  margin-top: 8px;
}

.btn-acknowledge {
  margin-top: 12px;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 600;
  background: white;
  border: 2px solid currentColor;
  border-radius: 6px;
  cursor: pointer;
  color: inherit;
}

/* Preview info */
.preview {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 12px 0;
  font-size: 16px;
}

.preview strong {
  color: #1e40af;
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.data-table th {
  background: #f8fafc;
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  border-bottom: 2px solid #e2e8f0;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 15px;
}

.data-table tr:hover {
  background: #f8fafc;
}

.data-table a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.data-table a:hover {
  text-decoration: underline;
}

/* Badge */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.badge-verified {
  background: #dcfce7;
  color: #166534;
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.badge-shipped {
  background: #dbeafe;
  color: #1e40af;
}

/* Login page */
.login-container {
  max-width: 400px;
  margin: 80px auto;
  padding: 40px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.login-container h1 {
  text-align: center;
  margin-bottom: 8px;
  font-size: 26px;
}

.login-container .subtitle {
  text-align: center;
  color: #64748b;
  margin-bottom: 30px;
  font-size: 15px;
}

.login-error {
  background: #fef2f2;
  color: #991b1b;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 15px;
  display: none;
}

.login-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: #94a3b8;
  font-size: 14px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.login-divider span {
  padding: 0 16px;
}

.google-btn-container {
  display: flex;
  justify-content: center;
}

.google-loading {
  text-align: center;
  padding: 16px;
  color: #64748b;
  font-size: 15px;
}

/* Summary stats */
.stats-row {
  display: flex;
  gap: 16px;
  margin: 20px 0;
}

.stat-card {
  flex: 1;
  background: white;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-card .stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a2e;
}

.stat-card .stat-label {
  font-size: 14px;
  color: #64748b;
  margin-top: 4px;
}

/* Loading */
.loading {
  text-align: center;
  padding: 40px;
  color: #64748b;
  font-size: 16px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #94a3b8;
  font-size: 18px;
}

/* Responsive */
@media (max-width: 600px) {
  .nav-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    flex-direction: column;
  }

  .data-table {
    font-size: 13px;
  }

  .data-table th,
  .data-table td {
    padding: 8px 10px;
  }
}
