/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* Global Reset & Base Styles */
body {
    font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

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

/* Glassmorphism Classes */
.glass-header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    transition: all var(--transition-smooth);
    z-index: 1050 !important;
}

#mainNav {
    z-index: 1050 !important;
}

.glass-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Custom Buttons */
.btn-primary-custom {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-smooth);
    box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.39);
}
.btn-primary-custom:hover {
    background-color: #ea580c; /* darker saffron */
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.23);
}

.btn-secondary-custom {
    background-color: var(--secondary);
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-smooth);
}
.btn-secondary-custom:hover {
    background-color: #1e40af;
    color: #fff;
    transform: translateY(-2px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all var(--transition-smooth);
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

/* Navbar specifics */
.navbar-brand .logo-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-right: 10px;
}
.navbar-brand .brand-text {
    font-weight: 700;
    color: var(--secondary);
    font-size: 1.5rem;
}
.nav-link {
    font-weight: 500;
    color: var(--text-main);
    margin: 0 0.5rem;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}
.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
    background: url('../images/hero/hero-bg.jpg') no-repeat center center/cover;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15, 61, 145, 0.85) 0%, rgba(30, 41, 59, 0.7) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
}
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Live Stats */
.stat-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    border-bottom: 4px solid var(--primary);
}
.stat-card .icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}
.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
.stat-card p {
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

/* Features */
.feature-card {
    padding: 2.5rem 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.4s ease;
}
.feature-card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.4s ease;
}
.feature-card:hover .icon-wrapper {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

/* Top Problems */
.problem-img {
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.badge-status {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    font-weight: 600;
    padding: 0.4em 0.8em;
}

/* Development Tracker */
.timeline-section {
    padding: 2rem 0;
}
.progress-custom {
    height: 12px;
    border-radius: 10px;
    background-color: #e2e8f0;
}
.progress-bar-custom {
    background-color: var(--accent);
    border-radius: 10px;
}

/* Poll Section */
.poll-section {
    background-color: var(--secondary);
    color: #fff;
    padding: 4rem 0;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}
.poll-option {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.poll-option:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Gallery Masonry (CSS Columns) */
.gallery-grid {
    column-count: 3;
    column-gap: 1rem;
}
.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
@media (max-width: 991px) { .gallery-grid { column-count: 2; } }
@media (max-width: 575px) { .gallery-grid { column-count: 1; } }

/* Announcements Ticker */
.announcement-bar {
    background: var(--primary);
    color: #fff;
    padding: 0.5rem 0;
    font-weight: 500;
}
.marquee-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 25s linear infinite;
}
@keyframes marquee {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Footer */
.site-footer {
    background-color: #0f172a;
    color: #cbd5e1;
    padding: 4rem 0 2rem;
}
.site-footer h5 {
    color: #fff;
    margin-bottom: 1.5rem;
}
.site-footer a {
    color: #94a3b8;
}
.site-footer a:hover {
    color: var(--primary);
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    margin-right: 0.5rem;
    transition: all var(--transition-fast);
}
.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-section { height: auto; min-height: 500px; padding-bottom: 40px; }
}

/* ======== PAGE 02: PROBLEM LISTING STYLES ======== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, rgba(15, 61, 145, 0.05) 0%, rgba(249, 115, 22, 0.05) 100%);
    padding: 100px 0 30px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Search Bar */
.search-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.search-input {
    border-radius: 50px;
    padding: 1.2rem 4rem 1.2rem 1.5rem;
    border: 2px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}
.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 4px 25px rgba(249, 115, 22, 0.15);
}
.search-icon {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}
.voice-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
    border: none;
    width: 45px; height: 45px;
    border-radius: 50%;
    transition: all var(--transition-fast);
}
.voice-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* Filter Scroll */
.filter-scroll {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 10px;
}
.filter-scroll::-webkit-scrollbar {
    display: none;
}
.filter-pill {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 50px;
    margin-right: 0.5rem;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-pill:hover {
    background: rgba(249, 115, 22, 0.05);
}
.filter-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

/* Problem Card Premium (24px Radius) */
.problem-card-premium {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: all 0.4s ease;
}
.problem-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.card-author-img {
    width: 45px; height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(249, 115, 22, 0.2);
}
.verified-badge {
    color: #3b82f6;
    font-size: 0.9rem;
}
.card-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.problem-card-premium:hover .card-thumbnail {
    transform: scale(1.05);
}
.card-thumbnail-wrapper {
    overflow: hidden;
    border-radius: 16px;
    margin: 0 1rem;
}
.problem-stats {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}
.problem-stats i { margin-right: 5px; }

/* Action Buttons Grid */
.action-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.action-btn {
    background: rgba(0,0,0,0.03);
    border: none;
    padding: 0.6rem;
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-main);
    transition: all var(--transition-fast);
}
.action-btn:hover {
    background: rgba(249, 115, 22, 0.1);
    color: var(--primary);
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.sidebar-widget ul li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar-widget ul li:last-child {
    border-bottom: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 24px;
}
.empty-state img {
    max-width: 250px;
    opacity: 0.7;
    margin-bottom: 2rem;
}

/* Bottom CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    border-radius: 24px;
    padding: 3rem 2rem;
    color: #fff;
    text-align: center;
    box-shadow: 0 15px 40px rgba(249, 115, 22, 0.2);
}

/* Problem Details Specific Styles */

/* Carousel Lightbox Image Hover */
.problem-gallery-wrapper .carousel-item img {
    transition: transform var(--transition-smooth);
}
.problem-gallery-wrapper .carousel-item:hover img {
    transform: scale(1.03);
}

/* Vertical Timeline (Progress Tracker) */
.timeline-vertical {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}
.timeline-vertical::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: rgba(0,0,0,0.1);
}
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2rem;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-marker {
    position: absolute;
    left: 4px;
    top: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    z-index: 2;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.timeline-content {
    padding-top: 5px;
}
.timeline-item.active .timeline-marker {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}
.timeline-item.current .timeline-marker {
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

/* Comment Cards */
.comment-card {
    transition: background-color var(--transition-fast);
}
.comment-card:hover {
    background-color: rgba(0,0,0,0.01);
}

/* ========================================= */
/* DASHBOARD & WIZARD MODAL STYLES           */
/* ========================================= */

/* Floating Action Button (FAB) */
.fab-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary) 0%, #ea580c 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1040;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.fab-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.5);
    color: white;
}

/* Fullscreen Modal Slide-Up Animation */
.modal.fade .modal-dialog.modal-fullscreen {
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.modal.show .modal-dialog.modal-fullscreen {
    transform: translateY(0);
}

/* Wizard Progress Indicator */
.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}
.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 4px solid #fff;
    transition: all 0.3s ease;
}
.wizard-step.active .step-circle, .wizard-step.completed .step-circle {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
}
.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    transition: color 0.3s ease;
}
.wizard-step.active .step-label {
    color: var(--primary);
}

/* Max Width Container inside Modal */
.max-w-800 {
    max-width: 800px;
    margin: 0 auto;
}

/* Selectable Category Cards */
.btn-outline-category {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    color: var(--text-main);
    background-color: #fff;
    transition: all 0.2s ease;
}
.btn-check:checked + .btn-outline-category {
    border-color: var(--primary);
    background-color: rgba(249, 115, 22, 0.05);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}
.btn-outline-category:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

/* Urgency Radio Buttons */
.urgency-selector .btn {
    border-width: 2px;
}
.urgency-selector .indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
}
.urgency-selector .btn-check:checked + .btn {
    border-color: var(--primary);
    background-color: #fff;
    color: var(--primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

/* Drag & Drop Zone */
.upload-dropzone {
    border-color: #cbd5e1;
    cursor: pointer;
}
.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--primary);
    background-color: rgba(249, 115, 22, 0.02) !important;
}

/* Custom Checkbox */
.custom-checkbox .form-check-input-lg {
    width: 1.5em;
    height: 1.5em;
    margin-top: 0.1em;
}

/* Success Animation */
.success-animation .checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--accent);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.success-animation .checkmark {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #fff;
    stroke-miterlimit: 10;
    margin: 10% auto;
    box-shadow: inset 0px 0px 0px var(--accent);
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}
.success-animation .checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke { 100% { stroke-dashoffset: 0; } }
@keyframes scale { 0%, 100% { transform: none; } 50% { transform: scale3d(1.1, 1.1, 1); } }
@keyframes fill { 100% { box-shadow: inset 0px 0px 0px 60px var(--accent); } }

/* ========================================= */
/* PWA MOBILE OPTIMIZATIONS                  */
/* ========================================= */

/* Smart Install Banner */
.smart-install-banner {
    position: fixed;
    top: 60px; /* Below the navbar */
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 15px;
    z-index: 1045;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 2px solid var(--primary);
}
.smart-install-banner.show {
    transform: translateY(0);
}
.install-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Bottom Navigation Bar (Mobile) */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 5px 15px 5px; /* Extra bottom padding for iOS safe area */
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    z-index: 1040;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 20%;
}

.bottom-nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
    transition: transform 0.2s ease;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item.active i {
    transform: scale(1.1);
}

.bottom-nav-item:hover {
    color: var(--primary);
}

/* Floating Center Add Button */
.bottom-nav-item.center-button {
    position: relative;
}

.fab-center {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary) 0%, #ea580c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    transform: translateY(-20px);
    border: 4px solid #fff;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-center:active {
    transform: translateY(-20px) scale(0.9);
}

/* Adjust Body Padding for Mobile Bottom Nav */
@media (max-width: 767px) {
    body {
        padding-bottom: 80px; /* Make room for bottom nav */
    }
    
    /* Hide FAB on mobile since we have center bottom nav button */
    .fab-btn {
        display: none !important;
    }
}
