/* 
  Hyper-Local Service Platform - Premium Design System 
  Font: Inter (Google Fonts)
  Colors: Teal / Slate / Amber
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Colors */
  --color-primary: #0F766E; /* Teal 700 */
  --color-primary-dark: #0F5F57;
  --color-primary-light: #CCFBF1; /* Teal 100 */
  
  --color-secondary: #0F172A; /* Slate 900 */
  
  --color-accent: #F59E0B; /* Amber 500 */
  
  /* Neutrals */
  --color-bg: #F8FAFC; /* Slate 50 */
  --color-surface: #FFFFFF;
  --color-border: #E2E8F0; /* Slate 200 */
  
  --color-text: #334155; /* Slate 700 */
  --color-text-dark: #1E293B; /* Slate 800 */
  --color-text-light: #64748B; /* Slate 500 */
  --color-text-white: #FFFFFF;

  /* State Colors */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  --color-info: #3B82F6;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 3rem;

  /* UI/UX */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  
  --header-height: 80px;
  --max-width: 1200px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  border-radius: var(--radius-sm);
  display: block;
}

/* --- Layout Utility Classes --- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-xl) 0;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-gap { gap: var(--spacing-lg); }

@media (max-width: 768px) {
  .grid-cols-2, .grid-cols-3, .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* --- Typography --- */

h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-dark);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.text-primary { color: var(--color-primary); }
.text-light { color: var(--color-text-light); }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

/* --- Components --- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 0.95rem;
  gap: 0.5rem;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: white;
  color: var(--color-text-dark);
  border: 1px solid var(--color-border);
}

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

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary-light);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Cards */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: var(--spacing-lg);
  transition: var(--transition);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary-light);
}

/* Header & Nav */
.navbar {
  background: var(--color-surface);
  height: var(--header-height);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--color-secondary);
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--color-text);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

/* Footer */
.footer {
  background-color: var(--color-secondary);
  color: var(--color-text-white);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #94A3B8;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  color: #94A3B8;
  font-size: 0.875rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: white;
  padding: 6rem 0;
  text-align: center;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin-bottom: 3rem;
  overflow: hidden;
  position: relative;
}

.hero h1 {
  color: white;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.125rem;
  color: #E2E8F0;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.search-bar {
  background: white;
  padding: 0.5rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.search-input {
  border: none;
  background: transparent;
  flex-grow: 1;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  outline: none;
}

.search-btn {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  background: var(--color-primary-dark);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-success { background: #D1FAE5; color: #065F46; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-danger  { background: #FEE2E2; color: #991B1B; }
.badge-info    { background: #DBEAFE; color: #1E40AF; }

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text-dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.breadcrumbs a {
  color: var(--color-primary);
}

/* Auth Pages */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F1F5F9;
}

.auth-card {
  width: 100%;
  max-width: 450px;
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}


/* Dashboard Layout */

.dashboard-layout{
  display: flex;
  min-height: 100vh;
}

/* Sidebar fixed */
.sidebar{
  width:260px;
  height:100vh;
  position:fixed;
  left:0;
  top:0;
  background:white;
  border-right:1px solid var(--color-border);
  padding:1.5rem;
  display:flex;
  flex-direction:column;
}

/* logout stays bottom */
.sidebar .logout{
  margin-top:auto;
}

/* Content scrolls */
.dashboard-content{
  margin-left:260px;
  height:100vh;
  overflow-y:auto;
  padding:2rem;
  flex:1;
}

.sidebar-menu {
  margin-top: 2rem;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--color-text);
  border-radius: var(--radius-md);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.sidebar-item:hover, .sidebar-item.active {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}


.alert {
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 6px;
    font-size: 0.95rem;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}


/* profile and jobs button hovering in admin_worker */
.btn-secondary:hover {
    color: #0f766e;
    border-color: #0f766e;
    background-color: transparent;
}
.btn.btn-secondary.btn-sm:hover {
    color: #0f766e;
    border-color: #0f766e;
    background-color: transparent;
}
.btn {
    transition: all 0.2s ease;
}


/* track booking */
.progress-container{
display:flex;
justify-content:space-between;
margin:30px 0;
position:relative;
}

.progress-container::before{
content:"";
position:absolute;
top:15px;
left:0;
width:100%;
height:3px;
background:#e5e7eb;
z-index:0;
}

.progress-step{
text-align:center;
position:relative;
z-index:1;
}

.circle{
width:30px;
height:30px;
border-radius:50%;
background:#e5e7eb;
display:flex;
align-items:center;
justify-content:center;
font-size:14px;
font-weight:bold;
margin:auto;
margin-bottom:6px;
}

.progress-step.active .circle{
background:#10b981;
color:white;
}

.progress-step p{
font-size:13px;
color:#6b7280;
}

.progress-step.active p{
color:#111827;
font-weight:600;
}


/* status badge style */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    line-height: 1;
}

.progress-step small{
    display:block;
    font-size:11px;
    color:#64748B;
    margin-top:4px;
}


.form-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
}
.form-input {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--color-border);
}