:root {
            --primary-color: #1a56db;
            --primary-light: #e1effe;
            --secondary-color: #7e3af2;
            --success-color: #0e9f6e;
            --success-light: #d1fae5;
            --danger-color: #e02424;
            --danger-light: #fde8e8;
            --warning-color: #f59e0b;
            --info-color: #3f83f8;
            --light-gray: #f9fafb;
            --medium-gray: #6b7280;
            --dark: #1f2937;
            --dark-gray: #374151;
            --border-color: #e5e7eb;
            --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            --hover-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
            min-height: 100vh;
        }
        
        .pps-page {
            max-width: 1400px;
            margin: 0 auto;
            padding: 25px;
        }
        
        /* Header Section */
        .page-header {
            background: white;
            border-radius: 16px;
            padding: 30px;
            margin-bottom: 25px;
            box-shadow: var(--card-shadow);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
            border-left: 5px solid var(--primary-color);
        }
        
        .header-content h1 {
            color: var(--dark-gray);
            font-size: 1.8rem;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .header-content h1 i {
            color: var(--primary-color);
            font-size: 1.6rem;
        }
        
        .header-content p {
            color: var(--medium-gray);
            font-size: 0.95rem;
        }
        
        /* Quick Stats */
        .quick-stats {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }
        
        .stat-badge {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 12px 18px;
            background: var(--primary-light);
            border-radius: 12px;
            min-width: 90px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .stat-badge:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        
        .stat-badge.active {
            background: var(--success-light);
        }
        
        .stat-badge.closed {
            background: var(--danger-light);
        }
        
        .stat-badge.nearest {
            background: linear-gradient(135deg, #8b5cf6, #7c3aed);
            color: white;
        }
        
        .stat-badge.nearest .stat-value,
        .stat-badge.nearest .stat-label {
            color: white;
        }
        
        .stat-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--dark-gray);
        }
        
        .stat-badge.active .stat-value {
            color: var(--success-color);
        }
        
        .stat-badge.closed .stat-value {
            color: var(--danger-color);
        }
        
        .stat-label {
            font-size: 0.85rem;
            color: var(--medium-gray);
            margin-top: 4px;
        }
        
        /* Dashboard Section */
        .dashboard-section {
            display: grid;
            grid-template-columns: 1fr 350px;
            gap: 25px;
            margin-bottom: 25px;
        }
        
        @media (max-width: 1024px) {
            .dashboard-section {
                grid-template-columns: 1fr;
            }
        }
        
        /* Filter Card */
        .filter-card {
            background: white;
            border-radius: 16px;
            padding: 25px;
            box-shadow: var(--card-shadow);
            height: fit-content;
        }
        
        .filter-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
        }
        
        .filter-header h2 {
            font-size: 1.2rem;
            color: var(--dark-gray);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .filter-header h2 i {
            color: var(--primary-color);
        }
        
        /* View Toggle */
        .view-toggle {
            display: flex;
            gap: 10px;
            margin-left: auto;
        }
        
        .view-btn {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--light-gray);
            color: var(--medium-gray);
            border: 1px solid var(--border-color);
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .view-btn.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        
        .view-btn:hover {
            background: #e5e7eb;
        }
        
        .view-btn.active:hover {
            background: #1a4fbd;
        }
        
        /* User Location Info */
        .user-location-info {
            display: flex;
            align-items: center;
            gap: 10px;
            background: var(--primary-light);
            padding: 12px 15px;
            border-radius: 10px;
            margin-bottom: 15px;
            font-size: 0.9rem;
            color: var(--primary-color);
        }
        
        .user-location-info i {
            color: var(--primary-color);
        }
        
        .btn-location-clear {
            margin-left: auto;
            background: transparent;
            border: 1px solid var(--primary-color);
            color: var(--primary-color);
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.8rem;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .btn-location-clear:hover {
            background: var(--primary-color);
            color: white;
        }
        
        /* Location Services Section */
        .location-services {
            background: white;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
            box-shadow: var(--card-shadow);
            border: 2px dashed var(--primary-color);
        }
        
        .location-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 15px;
            color: var(--primary-color);
        }
        
        .location-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .location-btn {
            flex: 1;
            padding: 12px 15px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.3s ease;
            min-width: 160px;
        }
        
        .btn-find-nearby {
            background: linear-gradient(135deg, var(--secondary-color), #6d28d9);
            color: white;
        }
        
        .btn-find-nearby:hover {
            background: linear-gradient(135deg, #6d28d9, #5b21b6);
            transform: translateY(-2px);
        }
        
        .btn-use-location {
            background: linear-gradient(135deg, var(--success-color), #059669);
            color: white;
        }
        
        .btn-use-location:hover {
            background: linear-gradient(135deg, #059669, #047857);
            transform: translateY(-2px);
        }
        
        /* Filter Form */
        .filter-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .filter-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 12px;
        }
        
        .filter-group {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        
        .filter-label {
            font-size: 0.85rem;
            font-weight: 500;
            color: var(--dark-gray);
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .filter-select {
            padding: 10px 12px;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-family: 'Poppins', sans-serif;
            font-size: 0.9rem;
            background: white;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .filter-select:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
        }
        
        .filter-actions {
            display: flex;
            gap: 10px;
            margin-top: 10px;
            flex-wrap: wrap;
        }
        
        .btn {
            padding: 10px 18px;
            border-radius: 8px;
            font-family: 'Poppins', sans-serif;
            font-weight: 500;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border: none;
            font-size: 0.9rem;
            transition: all 0.2s;
            text-decoration: none;
            white-space: nowrap;
        }
        
        .btn-primary {
            background: var(--primary-color);
            color: white;
            flex: 1;
        }
        
        .btn-primary:hover {
            background: #1a4fbd;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(26, 86, 219, 0.2);
        }
        
        .btn-secondary {
            background: var(--light-gray);
            color: var(--dark-gray);
            border: 1px solid var(--border-color);
        }
        
        .btn-secondary:hover {
            background: #e5e7eb;
            transform: translateY(-2px);
        }
        
        /* Stats Card */
        .stats-card {
            background: linear-gradient(135deg, var(--primary-color), #7e3af2);
            border-radius: 16px;
            padding: 25px;
            color: white;
            height: fit-content;
        }
        
        .stats-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
        }
        
        .stats-header i {
            font-size: 1.3rem;
        }
        
        .stats-header h2 {
            font-size: 1.2rem;
            font-weight: 500;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .stat-item {
            text-align: center;
        }
        
        .stat-number {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 5px;
        }
        
        .stat-desc {
            font-size: 0.85rem;
            opacity: 0.9;
        }
        
        .progress-bar {
            height: 6px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 3px;
            margin: 20px 0 10px;
            overflow: hidden;
        }
        
        .progress-fill {
            height: 100%;
            background: white;
            border-radius: 3px;
            
            transition: width 0.5s ease;
        }
        
        .progress-label {
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            opacity: 0.9;
        }
        
        /* Tab Navigation */
        .pps-tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 25px;
            border-bottom: 1px solid var(--border-color);
            flex-wrap: wrap;
        }
        
        .tab-btn {
            padding: 12px 24px;
            background: transparent;
            color: var(--medium-gray);
            border: none;
            font-weight: 500;
            cursor: pointer;
            position: relative;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .tab-btn.active {
            color: var(--primary-color);
        }
        
        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--primary-color);
            border-radius: 3px 3px 0 0;
        }
        
        .tab-badge {
            background: var(--light-gray);
            color: var(--dark-gray);
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 0.8rem;
        }
        
        .tab-btn.active .tab-badge {
            background: var(--primary-light);
            color: var(--primary-color);
        }
        
        /* Map View */
        .map-container {
            display: none;
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--card-shadow);
            margin-bottom: 25px;
        }
        
        .map-container.active {
            display: block;
            animation: fadeIn 0.4s ease-out;
        }
        
        .map-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 25px;
            border-bottom: 1px solid var(--border-color);
            background: white;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .map-header h2 {
            font-size: 1.3rem;
            color: var(--dark-gray);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .map-header h2 i {
            color: var(--primary-color);
        }
        
        .map-tabs {
            display: flex;
            gap: 10px;
            background: var(--light-gray);
            padding: 4px;
            border-radius: 8px;
            flex-wrap: wrap;
        }
        
        .map-tab-btn {
            padding: 8px 16px;
            border: none;
            background: transparent;
            color: var(--medium-gray);
            font-weight: 500;
            cursor: pointer;
            border-radius: 6px;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .map-tab-btn.active {
            background: var(--primary-color);
            color: white;
        }
        
        .map-wrapper {
            height: 500px;
            position: relative;
        }
        
        #ppsMap {
            height: 100%;
            width: 100%;
            border-radius: 0 0 16px 16px;
        }
        
        .map-controls {
            position: absolute;
            top: 20px;
            right: 20px;
            z-index: 1000;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        
        .map-control-btn {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: white;
            border: none;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            transition: all 0.3s ease;
        }
        
        .map-control-btn:hover {
            background: var(--primary-color);
            color: white;
            transform: scale(1.1);
        }
        
        .map-legend {
            position: absolute;
            bottom: 20px;
            right: 20px;
            background: white;
            padding: 15px;
            border-radius: 10px;
            box-shadow: var(--card-shadow);
            z-index: 1000;
            max-width: 200px;
        }
        
        .legend-title {
            font-weight: 600;
            color: var(--dark-gray);
            margin-bottom: 10px;
            font-size: 0.9rem;
        }
        
        .legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
            font-size: 0.85rem;
            color: var(--medium-gray);
        }
        
        .legend-marker {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            color: white;
        }
        
        .legend-active {
            background: var(--success-color);
        }
        
        .legend-closed {
            background: var(--danger-color);
        }
        
        .legend-user {
            background: var(--primary-color);
        }
        
        .legend-nearby {
            background: var(--secondary-color);
            border: 2px solid white;
            box-shadow: 0 0 0 2px var(--secondary-color);
        }
        
        .no-coordinates {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 300px;
            color: var(--medium-gray);
            text-align: center;
            padding: 20px;
        }
        
        .no-coordinates i {
            font-size: 3rem;
            margin-bottom: 15px;
            color: var(--border-color);
        }
        
        /* PPS Grid View */
        .pps-grid-section {
            display: none;
        }
        
        .pps-grid-section.active {
            display: block;
            animation: fadeIn 0.4s ease-out;
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid var(--border-color);
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .section-header h2 {
            font-size: 1.3rem;
            color: var(--dark-gray);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .section-header h2 i {
            color: var(--primary-color);
        }
        
        .section-count {
            background: var(--primary-light);
            color: var(--primary-color);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 500;
        }
        
        /* PPS Grid */
        .pps-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 20px;
        }
        
        @media (max-width: 768px) {
            .pps-grid {
                grid-template-columns: 1fr;
            }
        }
        
        /* PPS Card */
        .pps-card {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: var(--card-shadow);
            transition: all 0.3s;
            border: 1px solid transparent;
            position: relative;
            overflow: hidden;
        }
        
        .pps-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--hover-shadow);
            border-color: var(--primary-light);
        }
        
        .pps-card.closed {
            opacity: 0.85;
            background: linear-gradient(to right, white 96%, var(--danger-color) 4%);
        }
        
        .pps-card.nearby {
            border: 2px solid var(--secondary-color);
            background: linear-gradient(to right, white 96%, var(--secondary-color) 4%);
        }
        
        .pps-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
        }
        
        .pps-card:not(.closed)::before {
            background: linear-gradient(90deg, var(--success-color), var(--primary-color));
        }
        
        .pps-card.closed::before {
            background: var(--danger-color);
        }
        
        .pps-card.nearby::before {
            background: linear-gradient(90deg, var(--secondary-color), #8b5cf6);
        }
        
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 15px;
        }
        
        .pps-name {
            font-weight: 600;
            color: var(--dark-gray);
            font-size: 1.1rem;
            line-height: 1.3;
            flex: 1;
        }
        
        .distance-badge {
            background: var(--secondary-color);
            color: white;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.8rem;
            font-weight: 500;
            margin-left: 10px;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .status-badge {
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.8rem;
            font-weight: 500;
            white-space: nowrap;
            margin-left: 10px;
        }
        
        .status-active {
            background: var(--success-light);
            color: var(--success-color);
        }
        
        .status-closed {
            background: var(--danger-light);
            color: var(--danger-color);
        }
        
        .pps-details {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-bottom: 15px;
        }
        
        .detail-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        .detail-label {
            font-size: 0.8rem;
            color: var(--medium-gray);
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .detail-label i {
            font-size: 0.9rem;
        }
        
        .detail-value {
            font-weight: 500;
            color: var(--dark-gray);
            font-size: 0.95rem;
        }
        
        /* Coordinates Info */
        .coordinates-info {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.8rem;
            color: var(--medium-gray);
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px dashed var(--border-color);
        }
        
        .coordinates-info i {
            color: var(--info-color);
        }
        
        /* Capacity Bar */
        .capacity-bar {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid var(--border-color);
        }
        
        .capacity-info {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
            font-size: 0.85rem;
        }
        
        .capacity-label {
            color: var(--medium-gray);
        }
        
        .capacity-value {
            font-weight: 500;
            color: var(--dark-gray);
        }
        
        .capacity-progress {
            height: 6px;
            background: var(--border-color);
            border-radius: 3px;
            overflow: hidden;
        }
        
        .capacity-fill {
            height: 100%;
            border-radius: 3px;
            transition: width 0.5s ease;
        }
        
        /* Capacity Color Classes */
        .capacity-very-low .capacity-fill {
            background: linear-gradient(90deg, #0e9f6e, #10b981);
        }
        
        .capacity-low .capacity-fill {
            background: linear-gradient(90deg, #34d399, #10b981);
        }
        
        .capacity-medium .capacity-fill {
            background: linear-gradient(90deg, #f59e0b, #fbbf24);
        }
        
        .capacity-high .capacity-fill {
            background: linear-gradient(90deg, #f97316, #f59e0b);
        }
        
        .capacity-full .capacity-fill {
            background: linear-gradient(90deg, #e02424, #ef4444);
        }
        
        .pps-card.closed .capacity-fill {
            background: #6b7280;
        }
        
        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: var(--medium-gray);
        }
        
        .empty-state i {
            font-size: 3rem;
            margin-bottom: 15px;
            color: var(--border-color);
        }
        
        /* Compact List View */
        .pps-list-view {
            display: none;
        }
        
        .pps-list-view.active {
            display: block;
        }
        
        .pps-list-view .pps-card {
            display: grid;
            grid-template-columns: 1fr 2fr 1fr;
            gap: 20px;
            align-items: center;
        }
        
        /* Map Marker Popup */
        .leaflet-popup-content {
            font-family: 'Poppins', sans-serif;
            min-width: 250px;
        }
        
        .map-popup-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            padding-bottom: 10px;
            border-bottom: 1px solid var(--border-color);
        }
        
        .map-popup-title {
            font-weight: 600;
            color: var(--dark-gray);
            font-size: 1rem;
            flex: 1;
        }
        
        .map-popup-status {
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.75rem;
            font-weight: 500;
        }
        
        .map-popup-details {
            display: grid;
            gap: 8px;
            margin-bottom: 10px;
        }
        
        .map-popup-detail {
            display: flex;
            gap: 10px;
            font-size: 0.85rem;
        }
        
        .map-popup-label {
            color: var(--medium-gray);
            min-width: 80px;
        }
        
        .map-popup-value {
            color: var(--dark-gray);
            font-weight: 500;
        }
        
        /* Mobile Responsive */
        @media (max-width: 768px) {
            .pps-page {
                padding: 15px;
            }
            
            .page-header {
                padding: 20px;
                flex-direction: column;
                align-items: flex-start;
            }
            
            .quick-stats {
                width: 100%;
                justify-content: space-between;
            }
            
            .stat-badge {
                flex: 1;
                min-width: auto;
            }
            
            .filter-row {
                grid-template-columns: 1fr;
            }
            
            .pps-details {
                grid-template-columns: 1fr;
            }
            
            .pps-list-view .pps-card {
                grid-template-columns: 1fr;
            }
            
            .section-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }
            
            .view-toggle {
                align-self: flex-end;
            }
            
            .map-wrapper {
                height: 400px;
            }
            
            .map-legend {
                bottom: 10px;
                right: 10px;
                max-width: 150px;
            }
            
            .map-header {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }
            
            .map-tabs {
                width: 100%;
                justify-content: stretch;
            }
            
            .map-tab-btn {
                flex: 1;
                justify-content: center;
            }
            
            .location-buttons {
                flex-direction: column;
            }
            
            .location-btn {
                min-width: 100%;
            }
        }
        
        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }
        
        ::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
        }
        
        ::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 4px;
        }
        
        ::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }
        
        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .pps-card {
            animation: fadeIn 0.4s ease-out forwards;
        }
        
        /* Loading Spinner */
        .loading-spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(0,0,0,.1);
            border-radius: 50%;
            border-top-color: var(--primary-color);
            animation: spin 1s ease-in-out infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }