/* Worker Finder App - Main Stylesheet */
:root {
  --primary: #28a745;
  --primary-dark: #1e7e34;
  --primary-light: #d4edda;
  --secondary: #6c757d;
  --warning: #ffc107;
  --danger: #dc3545;
  --light-bg: #f8f9fa;
  --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }
body { background: #f0f4f0; font-family: 'Segoe UI', sans-serif; padding-bottom: 70px; }

/* Header */
.app-header {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white; z-index: 1000; box-shadow: 0 2px 8px rgba(40,167,69,0.3);
}
.header-brand { color: white; text-decoration: none; font-weight: 700; font-size: 1.1rem; }

/* Bottom Navigation */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: white; display: flex; justify-content: space-around;
  align-items: center; padding: 8px 0 12px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1); z-index: 1000;
  border-top: 1px solid #e8e8e8;
}
.bottom-nav .nav-item {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; color: #aaa; font-size: 10px; flex: 1;
  transition: color 0.2s;
}
.bottom-nav .nav-item i { font-size: 20px; margin-bottom: 2px; }
.bottom-nav .nav-item.active, .bottom-nav .nav-item:hover { color: var(--primary); }

/* Cards */
.job-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--card-shadow); padding: 16px;
  margin-bottom: 12px; transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid var(--primary);
}
.job-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.job-card .job-title { font-weight: 700; font-size: 1rem; color: #222; }
.job-card .job-price { color: var(--primary); font-weight: 700; font-size: 1.1rem; }
.job-card .job-meta { font-size: 12px; color: #888; }

/* Badges */
.badge-open { background: #d4edda; color: #155724; }
.badge-accepted { background: #fff3cd; color: #856404; }
.badge-started { background: #cce5ff; color: #004085; }
.badge-completed { background: #d1ecf1; color: #0c5460; }
.badge-cancelled { background: #f8d7da; color: #721c24; }

/* Status badges */
.status-badge {
  padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
}

/* Dashboard stats */
.stat-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--card-shadow); padding: 20px 16px; text-align: center;
}
.stat-card .stat-num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-card .stat-label { font-size: 12px; color: #888; margin-top: 4px; }
.stat-card .stat-icon { font-size: 2rem; color: var(--primary-light); margin-bottom: 8px; }

/* Forms */
.form-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--card-shadow); padding: 24px;
}
.form-control, .form-select {
  border-radius: 10px; border: 1.5px solid #e0e0e0;
  padding: 10px 14px; transition: border-color 0.2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(40,167,69,0.15);
}

/* Buttons */
.btn-primary { background: var(--primary); border-color: var(--primary); border-radius: 10px; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); border-radius: 10px; }
.btn-outline-primary:hover { background: var(--primary); }
.btn-success { border-radius: 10px; }
.btn-danger { border-radius: 10px; }

/* FAB - Floating Action Button */
.fab {
  position: fixed; bottom: 80px; right: 20px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: white;
  border: none; font-size: 24px; box-shadow: 0 4px 16px rgba(40,167,69,0.5);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: transform 0.2s, box-shadow 0.2s;
}
.fab:hover { transform: scale(1.1); box-shadow: 0 6px 20px rgba(40,167,69,0.6); color: white; }

/* Profile */
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--primary); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700; margin: 0 auto 12px;
}
.profile-card {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white; border-radius: var(--radius); padding: 24px; text-align: center;
}

/* Stars */
.stars { color: var(--warning); font-size: 1rem; }

/* OTP Input */
.otp-box {
  display: flex; gap: 8px; justify-content: center; margin: 16px 0;
}
.otp-box input {
  width: 44px; height: 52px; text-align: center; font-size: 1.4rem;
  font-weight: 700; border: 2px solid #ddd; border-radius: 10px;
}
.otp-box input:focus { border-color: var(--primary); outline: none; }

/* Wallet */
.wallet-card {
  background: linear-gradient(135deg, #28a745, #155724);
  color: white; border-radius: var(--radius); padding: 28px 24px;
}
.wallet-balance { font-size: 2.5rem; font-weight: 800; }
.wallet-label { font-size: 14px; opacity: 0.85; }

/* Contact Buttons */
.btn-call { background: #28a745; color: white; border-radius: 10px; }
.btn-whatsapp { background: #25d366; color: white; border-radius: 10px; }

/* Login/Register page */
.auth-page { min-height: 100vh; background: linear-gradient(135deg, #28a745 0%, #155724 100%); padding: 20px; }
.auth-card {
  background: white; border-radius: 20px; padding: 32px 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2); max-width: 420px; margin: 0 auto;
}
.auth-logo { text-align: center; color: var(--primary); font-size: 2.5rem; margin-bottom: 8px; }
.auth-title { text-align: center; font-weight: 800; color: #222; margin-bottom: 24px; }

/* Admin Sidebar */
.admin-sidebar {
  width: 240px; min-height: 100vh; background: #1a1a2e;
  position: fixed; left: 0; top: 0; z-index: 100;
  padding-top: 60px;
}
.admin-sidebar .nav-link {
  color: #aaa; padding: 10px 20px; display: flex; align-items: center; gap: 10px;
  transition: all 0.2s; font-size: 14px;
}
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
  color: white; background: rgba(40,167,69,0.2);
  border-left: 3px solid var(--primary);
}
.admin-sidebar .nav-link i { font-size: 16px; }
.admin-header {
  position: fixed; top: 0; left: 0; right: 0; height: 56px;
  background: white; z-index: 200; display: flex; align-items: center;
  padding: 0 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.admin-content { margin-left: 240px; padding: 80px 24px 24px; }
.admin-stat-card {
  border-radius: var(--radius); padding: 20px; color: white;
  display: flex; align-items: center; gap: 16px;
}
.admin-stat-card i { font-size: 2.5rem; opacity: 0.8; }
.admin-stat-card .num { font-size: 1.8rem; font-weight: 800; }
.admin-stat-card .lbl { font-size: 13px; opacity: 0.9; }

/* Animations */
@keyframes fadeInUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
.fade-in { animation: fadeInUp 0.4s ease both; }
.fade-in-1 { animation-delay: 0.05s; }
.fade-in-2 { animation-delay: 0.1s; }
.fade-in-3 { animation-delay: 0.15s; }
.fade-in-4 { animation-delay: 0.2s; }

/* Page sections */
.section-title { font-weight: 700; font-size: 1rem; color: #444; margin-bottom: 12px; }
.page-hero {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white; padding: 20px 16px; margin: -1px -1px 16px;
}
.page-hero h5 { margin: 0; font-weight: 700; }
.page-hero p { margin: 4px 0 0; opacity: 0.85; font-size: 13px; }

/* Notification dropdown */
.notif-dropdown { border-radius: 12px; border: none; }

/* App content */
.app-content { padding: 16px; max-width: 480px; margin: 0 auto; }

/* Worker profile mini-card */
.worker-mini-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--card-shadow); padding: 12px; display: flex; gap: 12px;
}
.worker-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--primary-light); display: flex; align-items: center;
  justify-content: center; font-weight: 700; color: var(--primary); font-size: 1.2rem;
  flex-shrink: 0;
}

/* Payment type tag */
.pay-online { background: #cce5ff; color: #004085; border-radius: 6px; padding: 2px 8px; font-size: 11px; }
.pay-cash { background: #fff3cd; color: #856404; border-radius: 6px; padding: 2px 8px; font-size: 11px; }

/* Toast */
.toast-container { position: fixed; top: 70px; right: 12px; z-index: 9999; }

/* Empty state */
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state i { font-size: 3rem; color: #ccc; }
.empty-state p { color: #888; margin-top: 12px; }

/* Responsive */
@media (max-width: 576px) {
  .app-content { padding: 12px; }
  .admin-sidebar { transform: translateX(-100%); transition: transform 0.3s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
}
.modal {
    z-index: 99999 !important;
}

.modal-dialog {
    z-index: 100000 !important;
    position: relative;
}

.modal-content {
    z-index: 100001 !important;
    position: relative;
}

.modal-backdrop {
    z-index: 99990 !important;
    opacity: 0.5 !important;
}