/* ==========================================================================
   SMART WASTE MANAGEMENT SYSTEM - STYLESHEET
   Light Theme Modern Hackathon UI
   Clean, Professional, Accessible, Responsive
   ========================================================================== */

:root {
  /* Color Palette */
  --primary: #10b981;          /* Emerald Green - Eco / Waste focus */
  --primary-hover: #059669;
  --primary-light: #ecfdf5;
  --primary-dark: #065f46;
  
  --secondary: #0284c7;        /* Ocean Blue - Recyclable / Fresh accent */
  --secondary-light: #f0f9ff;
  
  --bg-body: #f8fafc;          /* Crisp light background */
  --bg-card: #ffffff;          /* Pure white card surface */
  --bg-alt: #f1f5f9;           /* Soft muted background */
  
  --text-main: #0f172a;        /* Deep slate text */
  --text-muted: #64748b;       /* Secondary neutral text */
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;     /* Subtle light borders */
  --border-focus: #10b981;
  
  /* Status Colors */
  --status-pending: #f59e0b;       /* Amber */
  --status-pending-bg: #fef3c7;
  --status-assigned: #3b82f6;      /* Blue */
  --status-assigned-bg: #dbeafe;
  --status-progress: #8b5cf6;      /* Purple */
  --status-progress-bg: #ede9fe;
  --status-resolved: #10b981;      /* Green */
  --status-resolved-bg: #d1fae5;
  --status-danger: #ef4444;        /* Red / Critical Hotspot */
  --status-danger-bg: #fee2e2;

  /* Elevation Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);

  /* Geometry */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.main-content {
  flex: 1;
  padding-top: 28px;
  padding-bottom: 60px;
}

/* Modern Navigation Bar */
.navbar {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.brand-logo span.highlight {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-main);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.35);
}

.btn-secondary {
  background-color: var(--secondary);
  color: #ffffff !important;
}

.btn-secondary:hover {
  background-color: #0369a1;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

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

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

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

.btn-danger {
  background-color: var(--status-danger);
  color: #ffffff !important;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-sm {
  padding: 5px 12px;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 13px 26px;
  font-size: 1.05rem;
}

/* Alert Banners */
.alert-messages {
  margin-bottom: 24px;
}

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.alert-success {
  background-color: var(--primary-light);
  border-color: #a7f3d0;
  color: var(--primary-dark);
}

.alert-error, .alert-danger {
  background-color: var(--status-danger-bg);
  border-color: #fecaca;
  color: #991b1b;
}

.alert-info {
  background-color: var(--secondary-light);
  border-color: #bae6fd;
  color: #075985;
}

.alert-warning {
  background-color: var(--status-pending-bg);
  border-color: #fde68a;
  color: #92400e;
}

/* Cards */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Metric / Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.green {
  background-color: var(--primary-light);
  color: var(--primary);
}

.stat-icon.amber {
  background-color: var(--status-pending-bg);
  color: var(--status-pending);
}

.stat-icon.blue {
  background-color: var(--status-assigned-bg);
  color: var(--status-assigned);
}

.stat-icon.purple {
  background-color: var(--status-progress-bg);
  color: var(--status-progress);
}

.stat-icon.red {
  background-color: var(--status-danger-bg);
  color: var(--status-danger);
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* Quick Action Grid */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.action-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  display: block;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.action-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary);
  opacity: 0;
  transition: var(--transition);
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.action-card:hover::before {
  opacity: 1;
}

.action-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.action-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.action-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-pending, .badge-requested {
  background-color: var(--status-pending-bg);
  color: #92400e;
}

.badge-assigned {
  background-color: var(--status-assigned-bg);
  color: #1e40af;
}

.badge-in_progress, .badge-picked_up {
  background-color: var(--status-progress-bg);
  color: #5b21b6;
}

.badge-resolved, .badge-completed {
  background-color: var(--status-resolved-bg);
  color: #065f46;
}

.badge-danger {
  background-color: var(--status-danger-bg);
  color: #991b1b;
}

.badge-warning {
  background-color: var(--status-pending-bg);
  color: #92400e;
}

.badge-info {
  background-color: var(--secondary-light);
  color: #0369a1;
}

/* Priority Badges */
.badge-priority-low {
  background-color: #f1f5f9;
  color: #475569;
}
.badge-priority-medium {
  background-color: #fef3c7;
  color: #92400e;
}
.badge-priority-high {
  background-color: #fed7aa;
  color: #9a3412;
}
.badge-priority-critical {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.table th {
  background-color: var(--bg-alt);
  color: var(--text-muted);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

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

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

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

.form-control, .form-select {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #ffffff;
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-check-input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.field-error {
  color: var(--status-danger);
  font-size: 0.82rem;
  margin-top: 4px;
}

/* Auth Cards */
.auth-wrapper {
  max-width: 480px;
  margin: 20px auto 40px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Status Workflow Timeline Component */
.timeline-workflow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 30px 0;
  padding: 0 10px;
}

.timeline-workflow::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 40px;
  right: 40px;
  height: 4px;
  background-color: var(--border-color);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.timeline-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.timeline-step.completed .timeline-circle {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.timeline-step.current .timeline-circle {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.timeline-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.timeline-step.completed .timeline-label,
.timeline-step.current .timeline-label {
  color: var(--text-main);
  font-weight: 700;
}

/* Empty State Card */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.empty-state p {
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 20px;
  font-size: 0.92rem;
}

/* Landing Page Hero Section */
.hero-section {
  padding: 50px 0 60px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-body) 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.hero-content h1 {
  font-size: 2.7rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 18px;
}

.hero-content h1 span.gradient-text {
  color: var(--primary);
}

.hero-content p.hero-desc {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-illustration {
  text-align: center;
}

.hero-svg-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

/* Waste Segregation Visual Cards */
.segregation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin: 28px 0;
}

.bin-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.bin-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.bin-card.green-bin {
  border-color: #10b981;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.bin-card.blue-bin {
  border-color: #0284c7;
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.bin-card.red-bin {
  border-color: #ef4444;
  background: linear-gradient(180deg, #ffffff 0%, #fef2f2 100%);
}

.bin-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.bin-pill {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.bin-pill.green { background: #d1fae5; color: #065f46; }
.bin-pill.blue { background: #dbeafe; color: #1e40af; }
.bin-pill.red { background: #fee2e2; color: #991b1b; }

.bin-card ul {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.bin-card li {
  margin-bottom: 6px;
}

/* Dos and Don'ts Grid */
.dos-donts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 28px 0;
}

.dos-card {
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-left: 5px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 20px;
}

.donts-card {
  background: #ffffff;
  border: 1px solid #fecaca;
  border-left: 5px solid var(--status-danger);
  border-radius: var(--radius-md);
  padding: 20px;
}

/* Hotspot Analytics Table / Progress Bars */
.progress-bar-container {
  background-color: var(--bg-alt);
  height: 8px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 6px;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary);
  border-radius: var(--radius-full);
}

/* Footer */
.footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 36px 0;
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-cta {
    justify-content: center;
  }
  .dos-donts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
  }
  .nav-menu.show {
    display: flex;
  }
  .timeline-workflow {
    flex-direction: column;
    gap: 16px;
  }
  .timeline-workflow::before {
    display: none;
  }
}
