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

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #10b981;
    --danger: #ef4444;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --card-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

* {
    box-sizing: border-box; margin: 0; padding: 0;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, #e0f2fe 0%, #ccfbf1 100%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
}

.glass-nav {
    position: fixed; top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo {
    font-size: 1.7rem; font-weight: 700;
    background: linear-gradient(90deg, #16a34a, #2563eb);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a {
    text-decoration: none; color: var(--text-main); font-weight: 500;
    transition: color 0.3s, transform 0.3s;
}
.nav-links a:hover { color: var(--primary); transform: translateY(-2px); }

.hero { padding: 10rem 2rem 5rem; text-align: center; }
.hero-title {
    font-size: 4rem; font-weight: 700; margin-bottom: 1.5rem;
    background: linear-gradient(to right, #0ea5e9, #10b981);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: fadeInDown 0.8s ease-out;
}
.hero-subtitle {
    font-size: 1.25rem; color: var(--text-muted);
    max-width: 600px; margin: 0 auto 2.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.btn {
    padding: 0.8rem 1.8rem; border-radius: 99px; border: none;
    font-size: 1rem; font-weight: 600; cursor: pointer;
    transition: all 0.3s ease; text-decoration: none; display: inline-block;
}
.btn-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white; box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23); }
.btn-secondary { background: rgba(255,255,255,0.8); color: var(--text-main); border: 1px solid var(--glass-border); }
.btn-secondary:hover { background: white; transform: translateY(-1px); }
.btn-danger-outline { background: transparent; border: 1px solid var(--danger); color: var(--danger); }
.btn-danger-outline:hover { background: var(--danger); color: white; }
.btn-success { background: linear-gradient(135deg, #10b981, #34d399); color: white; }
.btn-success:hover { box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.39); transform: translateY(-2px); }

.pulse-btn { animation: pulse 2s infinite; }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px; box-shadow: var(--shadow);
    padding: 2.5rem;
}

.workspace-container {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem;
}
.map-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.map-toolbar h3 { font-size: 1.5rem; }
.map-actions { display: flex; gap: 0.8rem; }
#map {
    height: 550px; width: 100%; border-radius: 16px;
    background: rgba(255,255,255,0.5); box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
.helper-text { margin-top: 1rem; font-size: 0.95rem; color: var(--text-muted); }

.form-container h2 { margin-bottom: 2rem; font-size: 1.8rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.6rem; color: var(--text-main); }
.form-group input[type="file"], .form-group textarea, .coordinates-display {
    width: 100%; padding: 0.8rem 1rem; border: 1px solid rgba(255,255,255,0.8);
    border-radius: 12px; background: rgba(255, 255, 255, 0.4);
    font-size: 1rem; transition: all 0.3s ease; backdrop-filter: blur(4px);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; background: rgba(255, 255, 255, 0.8);
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.coordinates-display { font-family: monospace; color: var(--text-muted); }
.submit-btn { width: 100%; margin-top: 1rem; padding: 1rem; border-radius: 12px; }

.info-section { max-width: 1100px; margin: 6rem auto; padding: 0 2rem; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; font-weight: 700; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step-card {
    text-align: center; padding: 2.5rem 1.5rem; background: rgba(255,255,255,0.5);
    border-radius: 20px; transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px); border: 1px solid var(--glass-border);
}
.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.step-icon { font-size: 3.5rem; margin-bottom: 1.5rem; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); }

.admin-section { max-width: 1200px; margin: 5rem auto 7rem; padding: 0 2rem; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.filter-group select {
    padding: 0.6rem 1rem; border-radius: 10px; border: 1px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.8); font-size: 1rem; cursor: pointer; outline: none;
}
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1.2rem; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.05); }
th { font-weight: 600; color: var(--text-muted); }
tr:hover td { background: rgba(255,255,255,0.3); }

.badge { padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.badge.pending { background-color: #fee2e2; color: #991b1b; }
.badge.resolved { background-color: #dcfce7; color: #166534; }
.action-link { color: var(--primary); text-decoration: none; font-weight: 600; }
.action-link:hover { text-decoration: underline; }

#resolve-container {
    margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,0.1);
    animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.community-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    padding: 2.5rem;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    border: 1px solid var(--glass-border);
}

.community-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.85);
    border-color: var(--primary);
}

.community-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.community-card:hover .community-icon {
    transform: scale(1.1);
}

.community-card h3 {
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-size: 1.25rem;
}

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

footer { text-align: center; padding: 2rem; color: var(--text-muted); background: rgba(255,255,255,0.3); border-top: 1px solid var(--glass-border); }

@media (max-width: 900px) {
    .workspace-container, .steps-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.8rem; }
    .nav-links { display: none; }
}
