/* County Project Tracking System - Consolidated Public Styles */

/* Modern Theme Variables */
:root {
    --primary: 71 85 105;
    --primary-dark: 51 65 85;
    --secondary: 75 85 99;
    --accent: 59 130 246;
    --background: 250 245 255;
    --surface: 255 255 255;
    --surface-elevated: 243 232 255;
    --text: 15 23 42;
    --text-muted: 100 116 139;
    --border: 226 232 240;
    --success: 22 101 52;
    --warning: 146 64 14;
    --error: 153 27 27;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(148, 163, 184, 0.2);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 35px -5px rgba(0, 0, 0, 0.15);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg,
            rgb(var(--background)) 0%,
            rgb(var(--surface-elevated)) 100%);
    color: rgb(var(--text));
    overflow-x: hidden;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg,
            rgba(250, 245, 255, 1) 0%,
            rgba(243, 232, 255, 1) 50%,
            rgba(233, 213, 255, 0.3) 100%);
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(147, 51, 234, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.02) 0%, transparent 40%);
    animation: float 30s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) rotate(1deg);
    }

    66% {
        transform: translateY(10px) rotate(-1deg);
    }
}

/* Glass Morphism Components */
.glass-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg,
            rgba(34, 197, 94, 0.09) 0%,
            rgba(251, 191, 36, 0.07) 40%,
            rgba(34, 197, 94, 0.06) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(34, 197, 94, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: none;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(251, 191, 36, 0.03) 0%,
            transparent 50%,
            rgba(34, 197, 94, 0.03) 100%);
    border-radius: inherit;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 20px 40px rgba(34, 197, 94, 0.15),
        0 0 0 1px rgba(251, 191, 36, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
    background: linear-gradient(135deg,
            rgba(34, 197, 94, 0.12) 0%,
            rgba(251, 191, 36, 0.09) 40%,
            rgba(34, 197, 94, 0.08) 100%);
}

/* Hero Section */
.hero-modern {
    position: relative;
    min-height: 12vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg,
            rgba(71, 85, 105, 0.95) 0%,
            rgba(51, 65, 85, 0.9) 50%,
            rgba(30, 41, 59, 0.95) 100%);
    overflow: hidden;
    padding: 0.5rem 0;
}

.hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    animation: grid-move 30s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(10px, 10px);
    }
}

.hero-content {
    position: relative;
    z-zIndex: 2;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(0.875rem, 2.5vw, 1.25rem);
    font-weight: 300;
    margin-bottom: 1.25rem;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

.hero-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.3), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: sparkle 20s linear infinite;
    pointer-events: none;
}

@keyframes sparkle {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-200px);
    }
}

/* Search Bar */
.search-modern {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-modern::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
            rgb(var(--primary)),
            rgb(var(--secondary)),
            rgb(var(--accent)),
            rgb(var(--primary)));
    background-size: 400% 400%;
    border-radius: 52px;
    z-index: -1;
    animation: gradient-border 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.search-modern:hover::before {
    opacity: 0.7;
}

@keyframes gradient-border {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.search-input {
    width: 100%;
    padding: 1.5rem 2rem 1.5rem 4rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 1rem 2rem;
    background: linear-gradient(45deg, rgba(71, 85, 105, 0.9), rgba(51, 65, 85, 0.9));
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Project Cards */
.project-card-modern {
    position: relative;
    overflow: hidden;
    background: white;
    color: #374151;
    background: linear-gradient(135deg,
            rgba(34, 197, 94, 0.08) 0%,
            rgba(251, 191, 36, 0.06) 50%,
            rgba(34, 197, 94, 0.05) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 16px;
    padding: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 32px rgba(34, 197, 94, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.project-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #22c55e, #fbbf24, #22c55e);
    border-radius: 16px 16px 0 0;
}

.project-card-modern::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s;
}

.project-card-modern:hover::after {
    transform: rotate(45deg) translateX(100%);
}

.project-card-modern:hover {
    transform: translateY(-12px) rotateX(5deg);
    box-shadow:
        0 20px 40px rgba(34, 197, 94, 0.15),
        0 0 0 1px rgba(251, 191, 36, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(251, 191, 36, 0.4);
    background: linear-gradient(135deg,
            rgba(34, 197, 94, 0.12) 0%,
            rgba(251, 191, 36, 0.10) 50%,
            rgba(34, 197, 94, 0.08) 100%);
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgb(var(--text));
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.project-location {
    color: rgb(var(--text-muted));
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* Status Badges */
.status-badge-modern {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    line-height: 1.2;
}

.status-badge-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.status-badge-modern:hover::before {
    left: 100%;
}

.status-ongoing {
    background: linear-gradient(45deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.18));
    color: rgb(21, 128, 61);
    border: 1px solid rgba(34, 197, 94, 0.3);
    backdrop-filter: blur(10px);
}

.status-completed {
    background: linear-gradient(45deg, rgba(22, 163, 74, 0.12), rgba(22, 163, 74, 0.18));
    color: rgb(15, 118, 110);
    border: 1px solid rgba(22, 163, 74, 0.3);
    backdrop-filter: blur(10px);
}

.status-planning {
    background: linear-gradient(45deg, rgba(251, 191, 36, 0.12), rgba(251, 191, 36, 0.18));
    color: rgb(217, 119, 6);
    border: 1px solid rgba(251, 191, 36, 0.3);
    backdrop-filter: blur(10px);
}

/* Progress Elements */
.progress-circle-modern svg {
    transform: rotate(-90deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.progress-text-modern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 700;
    color: rgb(var(--text));
    z-index: 10;
    pointer-events: none;
}

/* Rating Stars */
.rating-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars-modern {
    display: flex;
    gap: 0.25rem;
}

.star-modern {
    color: #fbbf24;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.stars-modern .star-modern:hover {
    transform: scale(1.2) rotate(5deg);
}

/* Buttons */
.btn-modern {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-modern:hover::before {
    left: 100%;
}

.btn-modern:hover {
    transform: translateY(-3px) perspective(1000px) rotateX(5deg);
}

.btn-modern:active {
    transform: translateY(-1px) perspective(1000px) rotateX(2deg);
}

.btn-primary-modern {
    background: linear-gradient(45deg, rgb(var(--primary)), rgb(var(--primary-dark)));
    color: white;
    box-shadow: 0 4px 12px rgba(71, 85, 105, 0.2);
}

.btn-primary-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(71, 85, 105, 0.25);
}

.btn-secondary-modern {
    background: rgba(var(--text), 0.1);
    color: rgb(var(--text));
    border: 1px solid rgba(var(--text), 0.2);
}

.btn-secondary-modern:hover {
    background: rgba(var(--text), 0.15);
    transform: translateY(-2px);
}

/* Grid Layouts */
.grid-modern {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-modern-tight {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Category Headers */
.category-header-modern {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 1rem 0;
    background: linear-gradient(135deg,
            rgba(34, 197, 94, 0.08) 0%,
            rgba(251, 191, 36, 0.06) 100%);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    box-shadow:
        0 4px 16px rgba(34, 197, 94, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.category-header-modern::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.category-title-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    position: relative;
}

.category-count-modern {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Filter Section */
.filter-section-modern {
    position: relative;
    background: rgba(250, 245, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(196, 181, 253, 0.3);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.filter-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(71, 85, 105, 0.02) 0%,
            rgba(100, 116, 139, 0.03) 50%,
            rgba(148, 163, 184, 0.02) 100%);
    border-radius: inherit;
    pointer-events: none;
}

.filter-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0;
}

.filter-select-modern {
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.filter-select-modern:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* View Toggle */
.view-toggle-modern {
    display: flex;
    background: rgba(var(--text), 0.1);
    border-radius: 12px;
    padding: 0.25rem;
}

.view-btn-modern {
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: rgb(var(--text-muted));
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-btn-modern.active {
    background: rgb(var(--primary));
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Map Styles */
#mainMapView {
    height: 70vh;
    width: 100%;
    position: relative;
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.map-pin-popup .leaflet-popup-content-wrapper {
    background: rgba(34, 197, 94, 0.15) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: 16px !important;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(34, 197, 94, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(34, 197, 94, 0.3) !important;
}

/* Scroll to Top Button */
#scrollToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

#scrollToTop:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

/* Scroll Progress Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(226, 232, 240, 0.8);
    z-index: 1000;
    transform: scaleX(var(--scroll-progress, 0));
    transform-origin: left;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8, #7c3aed);
    transition: transform 0.1s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-modern {
        min-height: 10vh;
        padding: 0.375rem;
    }

    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.375rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }

    .search-modern {
        max-width: 100%;
    }

    .search-input {
        padding: 1rem 1.25rem 1rem 2.5rem;
        font-size: 0.9rem;
    }

    .search-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }

    .project-card-modern {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .project-title {
        font-size: 1.125rem;
    }

    .grid-modern {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .category-header-modern {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
        padding: 0.75rem;
    }

    .category-title-modern {
        font-size: 1.25rem;
    }

    .filter-section-modern {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .filter-grid-modern {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .view-toggle-modern {
        width: 100%;
        justify-content: center;
    }

    .btn-modern {
        padding: 0.625rem 1rem;
        font-size: 0.8rem;
    }

    .status-badge-modern {
        font-size: 0.65rem;
        padding: 0.2rem 0.5rem;
        max-width: 80px;
    }

    .scroll-indicator {
        height: 3px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .project-card-modern {
        padding: 1rem;
    }

    .project-header {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title-modern {
        font-size: 1.75rem;
    }

    .category-header-modern {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-title-modern {
        font-size: 1.5rem;
    }

    .admin-welcome-banner h2 {
        font-size: 1.75rem;
    }

    .admin-welcome-banner p {
        font-size: 1rem;
    }
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-animation {
    animation-delay: var(--stagger-delay, 0s);
}

/* Loading shimmer */
.loading-shimmer {
    background: linear-gradient(90deg,
            rgba(var(--text), 0.1) 25%,
            rgba(var(--text), 0.15) 50%,
            rgba(var(--text), 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

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

    100% {
        background-position: 200% 0;
    }
}

/* Utilities */
.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Form improvements for better visibility and accessibility */
.form-input {
    background-color: #ffffff !important;
    color: #1f2937 !important;
    border: 2px solid #d1d5db !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
}

.form-input:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    background-color: #ffffff !important;
}

.form-input::placeholder {
    color: #6b7280 !important;
    opacity: 1 !important;
}

.form-label {
    color: #374151 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.form-textarea {
    background-color: #ffffff !important;
    color: #1f2937 !important;
    border: 2px solid #d1d5db !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    border-radius: 8px !important;
    resize: vertical !important;
    min-height: 100px !important;
    transition: all 0.2s ease !important;
}

.form-textarea:focus {
    outline: none !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    background-color: #ffffff !important;
}

.form-textarea::placeholder {
    color: #6b7280 !important;
    opacity: 1 !important;
}

/* Enhanced button styles */
.btn-submit {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 12px 24px !important;
    border-radius: 8px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.btn-submit:active {
    transform: translateY(0) !important;
}

.btn-submit:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Improved accessibility for high contrast */
@media (prefers-contrast: high) {

    .form-input,
    .form-textarea {
        border-width: 3px !important;
        border-color: #000000 !important;
    }

    .form-input:focus,
    .form-textarea:focus {
        border-color: #0066cc !important;
        box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.3) !important;
    }

    .form-label {
        color: #000000 !important;
        font-weight: 700 !important;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }

    .glass-card,
    .project-card-modern {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    .hero-modern {
        background: white !important;
        color: black !important;
        min-height: auto !important;
    }

    .btn-modern {
        display: none !important;
    }

    .pagination-container {
        display: none !important;
    }
}

/* Enhanced Comment Section Styles */
.comment-thread {
    position: relative;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.comment-thread:hover {
    transform: translateY(-1px);
}

.comment-main {
    position: relative;
    transition: all 0.3s ease;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comment-main:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.comment-avatar {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px !important;
    font-weight: 600;
    margin-right: 8px;
}

.comment-avatar.admin {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
}

.comment-avatar.user {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-author {
    font-size: 13px !important;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.comment-text {
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #374151;
    margin-bottom: 6px;
}

.comment-meta {
    font-size: 11px !important;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.comment-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px !important;
    font-weight: 500;
    margin-left: 6px;
}

.comment-badge.admin {
    background: #dc2626;
    color: #ffffff;
    border: 1px solid #b91c1c;
}

.comment-badge.pending {
    background: #dbeafe;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.replies-container {
    position: relative;
    margin-left: 20px;
    margin-top: 8px;
}

.replies-container::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #3b82f6, #1d4ed8);
    border-radius: 1px;
}

.reply-item {
    transition: all 0.2s ease;
    position: relative;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 6px;
}

.reply-item:hover {
    background-color: #f1f5f9;
    transform: translateX(2px);
}

.reply-avatar {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px !important;
    font-weight: 600;
    margin-right: 6px;
}

.reply-avatar.admin {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
}

.reply-avatar.user {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
}

.reply-content {
    flex: 1;
    min-width: 0;
}

.reply-author {
    font-size: 11px !important;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.reply-text {
    font-size: 12px !important;
    line-height: 1.3 !important;
    color: #374151;
    margin-bottom: 4px;
}

.reply-meta {
    font-size: 10px !important;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.load-more-replies {
    transition: all 0.2s ease;
    font-size: 12px !important;
    color: #3b82f6;
    background: #f0f9ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 6px 12px;
    margin-top: 6px;
}

.load-more-replies:hover {
    transform: translateX(4px);
    background: #e0f2fe;
}

/* Enhanced notification animation */
#enhancedNotification {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Notification color updates */
.notification-success {
    background: #dcfce7 !important;
    border-color: #22c55e !important;
    color: #15803d !important;
}

.notification-error {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
    color: #dc2626 !important;
}

.notification-pending {
    background: #dbeafe !important;
    border-color: #3b82f6 !important;
    color: #1d4ed8 !important;
}

/* Form enhancements */
#commentForm {
    transition: all 0.3s ease;
}

#commentForm:focus-within {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

#replyingToInfo {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        max-height: 100px;
        transform: translateY(0);
    }
}

/* Enhanced button styles */
.btn-submit {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-submit:disabled {
    background: #9ca3af;
    transform: translateY(0);
    box-shadow: none;
}

/*  Timeline Styles */
.timeline-step-indicator {
    position: relative;
    transition: all 0.2s ease;
}

.timeline-step-indicator:hover {
    transform: scale(1.05);
}

/* Professional pulse animation for  sites */
@keyframes governmentPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.1;
        transform: scale(1.2);
    }
}

/* Subtle hover effects for  timeline */
.timeline-step:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transition: all 0.2s ease;
}

/* Professional status indicators */
.status-completed {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
}

.status-in-progress {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* Mobile timeline adjustments */
@media (max-width: 768px) {
    .timeline-step-name {
        max-width: 200px;
        font-size: 0.875rem;
        line-height: 1.2;
    }
    
    .timeline-mobile-card {
        margin-bottom: 0.5rem;
    }
}

/* Additional styles for project cards and layout */
/* Map styles */
#mainMapView {
    height: 600px;
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

/* Map marker styles */
.custom-marker {
    position: relative;
    width: 30px;
    height: 42px;
}

.marker-pin {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    transform-origin: 15px 15px;
    background: #3b82f6;
}

.marker-icon {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
    transform: rotate(45deg);
}

/* Map popup styles */
.map-popup {
    min-width: 200px;
}

.popup-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #1f2937;
}

.popup-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.popup-location {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.popup-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #3b82f6;
    text-decoration: none;
}

.popup-link:hover {
    text-decoration: underline;
}

.status-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-ongoing {
    background-color: #bfdbfe;
    color: #1e40af;
}

.status-completed {
    background-color: #bbf7d0;
    color: #166534;
}

.status-planning {
    background-color: #fed7aa;
    color: #9a3412;
}