/* Liftit Customer - Brand Tokens & Global Styles */

:root {
  --brand-primary: #FF6B00;
  --brand-primary-dark: #E05E00;
  --brand-primary-light: #FF8533;
  --brand-secondary: #1A1A2E;
  --liftit-success: #00C853;
  --liftit-danger: #E53935;
  --liftit-warning: #FFB300;
  --liftit-info: #2979FF;
  --liftit-status-searching: #FF6B00;
  --liftit-status-matched: #00C853;
  --liftit-status-enroute: #2979FF;
  --text-primary: #2D3748;
  --text-secondary: #718096;
  --text-light: #A0AEC0;
  --bg-page: #FFFFFF;
  --bg-light: #F7FAFC;
  --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.12);
  --card-radius: 16px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-family: 'Heebo', sans-serif;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  direction: rtl;
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: var(--brand-primary);
}

a:hover {
  color: var(--brand-primary-dark);
}

/* Header */
.liftit-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 20px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: relative;
  z-index: 100;
}

.liftit-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.liftit-logo .brand-logo-picture {
  display: block;
  line-height: 0;
}

.liftit-logo img,
.liftit-logo .brand-logo,
.brand-logo--header {
  height: 32px;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
}

.liftit-logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand-primary);
}

.liftit-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  position: absolute;
  left: 20px;
}

.nav-user-name {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brand-primary);
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--brand-primary-dark);
}

/* Footer */
.liftit-footer {
  background: var(--brand-secondary);
  color: #fff;
  padding: 40px 20px 24px;
  margin-top: 60px;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  height: 24px;
  margin-bottom: 8px;
  width: auto;
}

.footer-logo-text {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}

.footer-brand .brand-logo--footer {
  height: 24px;
  width: auto;
  display: inline-block;
  margin-bottom: 8px;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin: 4px 0 20px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.footer-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-family);
  cursor: pointer;
  transition: background var(--transition), transform 0.15s ease;
  min-width: 160px;
}

.btn-primary:hover {
  background: var(--brand-primary-dark);
  transform: translateY(-1px);
}

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

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-family);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: var(--brand-primary);
  color: #fff;
}

.btn-large {
  width: 100%;
  padding: 16px;
  font-size: 1.15rem;
  border-radius: var(--radius-lg);
}

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

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-family);
  color: var(--text-primary);
  transition: border-color var(--transition);
  direction: rtl;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-primary);
}

/* Toast / Notifications */
.toast-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

.toast {
  background: var(--brand-secondary);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  animation: toastIn 0.3s ease;
  margin-bottom: 8px;
}

.toast.toast-error {
  background: var(--liftit-danger);
}

.toast.toast-success {
  background: var(--liftit-success);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }

/* Spinner */
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spinner-dark {
  border-color: rgba(0,0,0,0.1);
  border-top-color: var(--brand-primary);
}

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

/* Page Container */
.page-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
}

.page-container-wide {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* Responsive */
@media (max-width: 480px) {
  .liftit-header {
    padding: 10px 14px;
  }
  .page-container,
  .page-container-wide {
    padding: 14px;
  }
}
