        :root {
            --primary-color: #4a6fa5;
            --secondary-color: #166088;
            --danger-color: #e74c3c;
            --warning-color: #f39c12;
            --success-color: #27ae60;
            --light-bg: #f5f6fa;
            --dark-text: #2c3e50;
            --light-text: #ecf0f1;
            --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --transition: all 0.3s ease;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: var(--light-bg);
            color: var(--dark-text);
            padding: 0;
            margin: 0;
            direction: rtl;
            line-height: 1.6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        header {
            background-color: var(--primary-color);
            color: white;
            padding: 1rem;
            text-align: center;
            position: relative;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }

        .header-content {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
        }

        .back-btn {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
        }

        .back-btn:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        h1 {
            margin: 0;
            font-size: 1.5rem;
            font-weight: 700;
        }

        .logo {
            width: 30px;
            height: 30px;
        }

        .container {
            flex: 1;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 1rem;
        }

        .small {
            font-size: 0.9rem;
            color: #666;
            text-align: center;
            margin-bottom: 1rem;
        }

        #map {
            height: 50vh;
            width: 100%;
            border-radius: 12px;
            margin-bottom: 1rem;
            box-shadow: var(--card-shadow);
            z-index: 1;
        }

        .controls {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .filter-btn {
            padding: 0.5rem 1rem;
            border: none;
            border-radius: 20px;
            background: #ddd;
            cursor: pointer;
            transition: var(--transition);
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.3rem;
            box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
        }

        .filter-btn.active {
            color: white;
            box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
        }

        .harassment-btn.active {
            background: var(--secondary-color);
        }

        .scam-btn.active {
            background: var(--warning-color);
        }

        .theft-btn.active {
            background: var(--danger-color);
        }

        .reports-section {
            background: white;
            border-radius: 12px;
            box-shadow: var(--card-shadow);
            padding: 1rem;
            margin-top: 1rem;
        }

        .section-title {
            margin-bottom: 1rem;
            color: var(--primary-color);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .table-container {
            display: flex;
            gap: 1rem;
            padding: 0.5rem;
            overflow-x: auto;
            scrollbar-width: thin;
            scrollbar-color: var(--primary-color) #f1f1f1;
        }

        .table-container::-webkit-scrollbar {
            height: 6px;
        }

        .table-container::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .table-container::-webkit-scrollbar-thumb {
            background-color: var(--primary-color);
            border-radius: 10px;
        }

        .report-card {
            min-width: 250px;
            border: 1px solid #eee;
            border-radius: 10px;
            padding: 1rem;
            background: white;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            flex-shrink: 0;
            transition: var(--transition);
        }

        .report-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .report-card h4 {
            margin-top: 0;
            color: var(--primary-color);
            border-bottom: 1px solid #eee;
            padding-bottom: 0.5rem;
            font-size: 1.1rem;
        }

        .badge {
            color: white;
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            font-size: 0.8rem;
            display: inline-block;
            margin-left: 0.5rem;
        }

        .harassment-badge {
            background-color: var(--secondary-color);
        }

        .scam-badge {
            background-color: var(--warning-color);
        }

        .theft-badge {
            background-color: var(--danger-color);
        }

        footer {
            text-align: center;
            padding: 1rem;
            background-color: var(--primary-color);
            color: white;
            margin-top: 2rem;
            font-size: 0.9rem;
        }

        .map-legend {
            background: white;
            padding: 0.8rem;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            line-height: 1.5;
            font-size: 0.9rem;
        }

        .legend-title {
            font-weight: bold;
            margin-bottom: 0.5rem;
            color: var(--primary-color);
        }

        .legend-item {
            display: flex;
            align-items: center;
            margin-bottom: 0.3rem;
        }

        .legend-icon {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-left: 8px;
            flex-shrink: 0;
        }

        .accuracy-note {
            font-size: 0.8rem;
            margin-top: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.3rem;
            color: var(--dark-text);
        }

        .loading {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            color: white;
            font-size: 1.2rem;
            flex-direction: column;
            gap: 1rem;
        }

        .loading-spinner {
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top: 4px solid white;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        /* Mobile-specific styles */
        @media (max-width: 768px) {
            h1 {
                font-size: 1.2rem;
            }

            .container {
                padding: 0.8rem;
            }

            #map {
                height: 55vh;
                border-radius: 8px;
            }

            .controls {
                gap: 0.3rem;
            }

            .filter-btn {
                padding: 0.4rem 0.8rem;
                font-size: 0.8rem;
            }

            .report-card {
                min-width: 220px;
                padding: 0.8rem;
            }

            .report-card h4 {
                font-size: 1rem;
            }

            .back-btn {
                width: 35px;
                height: 35px;
                right: 0.5rem;
            }

            .map-legend {
                padding: 0.6rem;
                font-size: 0.8rem;
            }
        }

        @media (max-width: 480px) {
            .header-content {
                gap: 0.5rem;
            }

            .logo {
                width: 25px;
                height: 25px;
            }

            #map {
                height: 60vh;
            }

            .controls {
                justify-content: space-between;
                gap: 0.2rem;
            }

            .filter-btn {
                flex: 1;
                justify-content: center;
                padding: 0.4rem;
                font-size: 0.75rem;
            }

            .table-container {
                gap: 0.8rem;
                padding: 0.3rem;
            }

            .report-card {
                min-width: 200px;
            }

            footer {
                padding: 0.8rem;
                font-size: 0.8rem;
            }
        }