:root {
  --client-bg: #FFF8E7;
  --client-primary: #FF8C42;
  --client-success: #7BC67E;
  --client-calm: #5B9BD5;
  --client-text: #333333;
  --client-text-light: #666666;
  
  --worker-bg: #FFFFFF;
  --worker-primary: #3B82F6;
  --worker-text: #1F2937;
  --worker-text-light: #6B7280;
  
  --alert-red: #EF4444;
  --alert-orange: #F97316;
  --alert-yellow: #EAB308;
  --alert-blue: #3B82F6;
  
  --font-size-btn: 24px;
  --font-size-title: 32px;
  --font-size-body: 20px;
  --font-size-worker-title: 18px;
  --font-size-worker-body: 14px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

body.client-theme {
  background-color: var(--client-bg);
  color: var(--client-text);
}

body.worker-theme {
  background-color: var(--worker-bg);
  color: var(--worker-text);
}

.page-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.client-theme .page-header {
  background: linear-gradient(135deg, var(--client-primary) 0%, #FFB347 100%);
  color: white;
}

.worker-theme .page-header {
  background: var(--worker-primary);
  color: white;
}

.page-title {
  font-size: var(--font-size-title);
  font-weight: 600;
}

.worker-theme .page-title {
  font-size: var(--font-size-worker-title);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: white;
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  border-top: 1px solid #E5E7EB;
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: #9CA3AF;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-item.active {
  color: var(--client-primary);
  background: rgba(255, 140, 66, 0.1);
}

.worker-theme .nav-item.active {
  color: var(--worker-primary);
  background: rgba(59, 130, 246, 0.1);
}

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

.page-content {
  padding: 16px;
  padding-bottom: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 16px;
  font-size: var(--font-size-btn);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.btn-success {
  background: var(--client-success);
  color: white;
}

.btn-danger {
  background: var(--alert-red);
  color: white;
}

.card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.client-theme .card {
  border: 2px solid transparent;
}

.worker-theme .card {
  border: 1px solid #E5E7EB;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.8);
  color: white;
  padding: 20px 40px;
  border-radius: 16px;
  font-size: 20px;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

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

.toast.warning {
  background: var(--alert-orange);
}

.back-to-home {
  position: fixed;
  top: 80px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 2px solid var(--client-primary);
  color: var(--client-primary);
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  z-index: 99;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 12px rgba(255, 140, 66, 0.3);
}

.back-to-home:hover {
  background: var(--client-primary);
  color: white;
  transform: scale(1.05);
}

.back-to-home.worker {
  top: 70px;
  border-color: var(--worker-primary);
  color: var(--worker-primary);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.3);
}

.back-to-home.worker:hover {
  background: var(--worker-primary);
  color: white;
}
