@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
    --primary: #006D5B;
    /* Municipality Green/Teal */
    --primary-dark: #004D40;
    --secondary: #F59E0B;
    /* Alert Orange */
    --bg-light: #F3F4F6;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --white: #FFFFFF;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header */
header {
    background: var(--white);
    padding: 1rem 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: none;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: var(--secondary);
}

.btn-login {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.btn-login:hover {
    background: var(--primary);
    color: var(--white);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 5rem 1.5rem;
    text-align: center;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
    animation: fadeInDown 0.8s ease;
}

.hero p {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.btn-report {
    background: var(--secondary);
    color: #fff;
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: inline-block;
    animation: zoomIn 0.8s ease 0.4s backwards;
}

.btn-report:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
    color: var(--white);
}

/* Features/Stats */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: -4rem;
    padding: 0 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    border-top: 5px solid var(--primary);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.stat-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Report Form Section */
.form-section {
    max-width: 800px;
    margin: 5rem auto;
    padding: 0 1.5rem;
}

.form-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid #F3F4F6;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
    font-size: 2rem;
    font-weight: 800;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: 0.3s;
    background: #F9FAFB;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.2);
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    border: 3px dashed #D1D5DB;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    background: #FAFAFA;
}

.file-upload-wrapper:hover {
    border-color: var(--primary);
    background: #FFFBEB;
}

.file-upload-wrapper i {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
}

.file-upload-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

#image-preview {
    max-width: 100%;
    max-height: 100%;
    display: none;
    border-radius: 12px;
    object-fit: cover;
}

/* Map */
#map {
    height: 350px;
    width: 100%;
    border-radius: var(--radius);
    margin-top: 0.5rem;
    border: 2px solid #E5E7EB;
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 1.2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Tracking Section */
.tracking-section {
    background: #F3F4F6 !important;
    margin: 2rem 1rem;
    border-radius: 12px;
}

.tracking-section h2 {
    color: #006D5B !important;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    header {
        padding: 1rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .hero {
        padding: 3rem 1rem;
        border-radius: 0 0 30px 30px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-report {
        width: 100%;
        padding: 1rem;
    }

    .stats-container {
        flex-direction: column;
        margin-top: -2rem;
        gap: 1rem;
    }

    .stat-card {
        min-width: 100%;
        max-width: 100%;
        padding: 1.5rem;
        display: flex;
        align-items: center;
        text-align: right;
        gap: 1rem;
    }

    .stat-card i {
        margin-bottom: 0;
        font-size: 2rem;
    }

    .stat-card div {
        flex: 1;
    }

    .form-section {
        margin: 3rem auto;
        padding: 0 1rem;
    }

    .form-card {
        padding: 1.5rem;
    }

    .btn-submit {
        font-size: 1.1rem;
        padding: 1rem;
    }

    #map {
        height: 250px;
    }
}