/* =============================================
   SevaSetu — Global Stylesheet
   ============================================= */

/* Material Symbols Icon Settings */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Hero Section Background Gradient */
.sage-gradient {
    background: linear-gradient(135deg, #f8f9ff 0%, #effff8 100%);
}

/* Primary CTA Button Gradient */
.primary-gradient-btn {
    background: linear-gradient(90deg, #006c44 0%, #4caf7d 100%);
}

/* =============================================
   Urgency Badge Colors
   ============================================= */

.urgency-low {
    background-color: #d1fae5;
    color: #065f46;
}

.urgency-medium {
    background-color: #fef3c7;
    color: #92400e;
}

.urgency-high {
    background-color: #fee2e2;
    color: #991b1b;
}

/* =============================================
   Status Chip Colors
   ============================================= */

.status-open {
    background-color: #dbeafe;
    color: #1e40af;
}

.status-assigned {
    background-color: #fef3c7;
    color: #92400e;
}

.status-in-progress {
    background-color: #ede9fe;
    color: #5b21b6;
}

.status-completed {
    background-color: #d1fae5;
    color: #065f46;
}

/* =============================================
   Skill Tag
   ============================================= */

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background-color: #d1fae5;
    color: #065f46;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.skill-tag.matched {
    background-color: #006c44;
    color: #ffffff;
}

/* =============================================
   Match Score Badge
   ============================================= */

.match-score-badge {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(#006c44 var(--score-percent), #e5e7eb var(--score-percent));
    font-size: 0.7rem;
    font-weight: 700;
    color: #006c44;
    position: relative;
}

.match-score-badge::before {
    content: '';
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: white;
}

.match-score-badge span {
    position: relative;
    z-index: 1;
}

/* =============================================
   Card Styles
   ============================================= */

.seva-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 4px 24px rgba(0, 108, 68, 0.06);
    transition: box-shadow 0.2s ease;
}

.seva-card:hover {
    box-shadow: 0 8px 40px rgba(0, 108, 68, 0.12);
}

/* =============================================
   Sidebar Navigation
   ============================================= */

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 0.75rem;
    color: #3e4942;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-nav a:hover {
    background-color: #d1fae5;
    color: #006c44;
}

.sidebar-nav a.active {
    background-color: #d1fae5;
    color: #006c44;
    border-left: 3px solid #006c44;
    font-weight: 700;
}

/* =============================================
   Progress Timeline (Need Status Steps)
   ============================================= */

.timeline-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #9ca3af;
}

.timeline-step.completed {
    color: #006c44;
}

.timeline-step.active {
    color: #006c44;
    font-weight: 700;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    background-color: #e5e7eb;
    flex-shrink: 0;
}

.timeline-step.completed .timeline-dot {
    background-color: #006c44;
}

.timeline-step.active .timeline-dot {
    background-color: #006c44;
    box-shadow: 0 0 0 4px rgba(0, 108, 68, 0.2);
}

.timeline-line {
    width: 32px;
    height: 2px;
    background-color: #e5e7eb;
}

.timeline-line.completed {
    background-color: #006c44;
}

/* =============================================
   Task Progress Bar
   ============================================= */

.task-progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.task-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #006c44, #4caf7d);
    border-radius: 9999px;
    transition: width 0.4s ease;
}

/* =============================================
   Chat Bubbles (Inbox)
   ============================================= */

.bubble-mine {
    background-color: #006c44;
    color: #ffffff;
    border-radius: 1rem 1rem 0.25rem 1rem;
    padding: 10px 16px;
    max-width: 70%;
    align-self: flex-end;
    font-size: 0.9rem;
}

.bubble-theirs {
    background-color: #ffffff;
    color: #121c2a;
    border-radius: 1rem 1rem 1rem 0.25rem;
    padding: 10px 16px;
    max-width: 70%;
    align-self: flex-start;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* =============================================
   Upload Drop Zone
   ============================================= */

.upload-zone {
    border: 2px dashed #4caf7d;
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f0fdf4;
}

.upload-zone:hover {
    border-color: #006c44;
    background-color: #dcfce7;
}

.upload-zone.drag-over {
    border-color: #006c44;
    background-color: #dcfce7;
    transform: scale(1.01);
}

/* =============================================
   Heatmap Legend
   ============================================= */

.map-legend {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: white;
    border-radius: 0.75rem;
    padding: 10px 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1000;
}

/* =============================================
   Skeleton Loading
   ============================================= */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =============================================
   Toast Notifications
   ============================================= */

#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    border-left: 4px solid #006c44;
    border-radius: 0.75rem;
    padding: 14px 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    font-size: 0.875rem;
    font-weight: 500;
    max-width: 320px;
    cursor: pointer;
    animation: slideIn 0.3s ease;
}

.toast.urgent {
    border-left-color: #a83639;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* =============================================
   Mobile Responsive Helpers
   ============================================= */

@media (max-width: 768px) {
    .seva-card {
        padding: 1rem;
    }

    .bubble-mine,
    .bubble-theirs {
        max-width: 85%;
    }
}

/* Mobile Navbar Fix - Safe */

@media (max-width: 767px) {

  nav {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Make logo smaller */
  nav a img.h-10 {
    height: 32px !important;
  }

  nav a img.h-8 {
    height: 22px !important;
  }

  /* Get Started button smaller */
  nav .primary-gradient-btn {
    padding: 8px 14px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }

  /* Right side spacing tighter */
  nav .gap-4 {
    gap: 8px !important;
  }

}