 /* All original styles remain exactly the same */
        .container {
            display: flex;
            gap: 20px;
            max-width: 100%;
            margin: 0 auto;
            height: calc(100vh - 40px);
        }
        .left-panel {
            width: 450px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        .form-panel, .list-panel {
            background: white;
            border-radius: 8px;
            padding: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .form-panel {
            flex: 1;
            overflow-y: auto;
        }
        .list-panel {
            flex: 1;
            overflow-y: auto;
        }
        .map-panel {
            flex: 1;
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: relative;
        }
        h1, h2 {
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 20px;
            padding-bottom: 10px;
            /* border-bottom: 2px solid #000; */
        }
        h2 {
            font-size: 18px;
            border-bottom: 1px solid #000;
        }
        h3 {
            font-size: 16px;
            margin-bottom: 10px;
            color: #2c3e50;
        }
        .tab-container {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 1px solid #eee;
            padding-bottom: 10px;
            flex-wrap: wrap;
        }
        .tab {
            padding: 4px 6px;
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .tab.active {
            background: #000;
            color: white;
            border-color: #000;
        }
        .tab:hover:not(.active) {
            background: #e9ecef;
        }
        .form-section {
            margin-bottom: 25px;
        }
        .section-title {
            font-size: 16px;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 15px;
            padding-bottom: 8px;
            border-bottom: 1px solid #eee;
        }
        .form-group {
            margin-bottom: 15px;
        }
        label {
            display: block;
            margin-bottom: 6px;
            font-weight: 500;
            color: #555;
            font-size: 14px;
        }
        .required::after {
            content: " *";
            color: #e74c3c;
        }
        input, select, textarea {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            transition: border 0.2s;
        }
        input:focus, select:focus, textarea:focus {
            outline: none;
            border-color: #000;
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        }
        textarea {
            height: 80px;
            resize: vertical;
            font-family: inherit;
        }
        .checkbox-group, .radio-group {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
        }
        .checkbox-group label, .radio-group label {
            margin-bottom: 0;
            cursor: pointer;
        }
        input[type="checkbox"], input[type="radio"] {
            width: auto;
            cursor: pointer;
        }
        .radio-group {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }
        .radio-option {
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .draw-controls {
            background: #f8f9fa;
            border-radius: 6px;
            padding: 15px;
            margin-bottom: 20px;
            border: 1px solid #e9ecef;
        }
        .draw-buttons {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            margin-bottom: 15px;
        }
        .draw-buttons button {
            padding: 12px;
            border: none;
            border-radius: 4px;
            background: #000;
            color: white;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
        .draw-buttons button:hover {
            background: #2980b9;
            transform: translateY(-1px);
        }
        .draw-buttons button.active {
            background: #1a5276;
            box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
        }
        .draw-buttons button.cancel {
            background: #e74c3c;
        }
        .draw-buttons button.cancel:hover {
            background: #c0392b;
        }
        .instructions {
            color: #7f8c8d;
            font-size: 13px;
            font-style: italic;
            line-height: 1.4;
            background: #fef9e7;
            padding: 10px;
            border-radius: 4px;
            border-left: 3px solid #f1c40f;
        }
        .coordinates-container {
            max-height: 200px;
            overflow-y: auto;
            background: #f8f9fa;
            border-radius: 4px;
            padding: 10px;
            margin-top: 10px;
            border: 1px solid #eee;
        }
        .coordinate-item {
            padding: 8px 10px;
            background: white;
            margin-bottom: 5px;
            border-radius: 3px;
            font-family: 'Courier New', monospace;
            font-size: 12px;
            border-left: 3px solid #000;
        }
        .coordinate-item:last-child {
            margin-bottom: 0;
        }
        .submit-btn {
            padding: 8px;
            background: #2ecc71;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            margin-top: 10px;
            width: 100%;
        }
        .submit-btn:hover {
            background: #27ae60;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
        }
        .submit-btn:disabled {
            background: #95a5a6;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        .btn-secondary {
            padding: 15px;
            background: #000;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            margin-top: 10px;
            width: 100%;
        }
        .btn-secondary:hover {
            background: #2980b9;
            transform: translateY(-2px);
        }
        #map {
            height: 100%;
            width: 100%;
        }
        .response-message {
            margin-top: 20px;
            padding: 15px;
            border-radius: 4px;
            font-size: 14px;
            display: none;
            animation: fadeIn 0.3s ease;
        }
        .response-message.success {
            background: #d5edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }
        .response-message.error {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }
        .response-message.info {
            background: #d1ecf1;
            color: #0c5460;
            border: 1px solid #bee5eb;
        }
        .geofence-list {
            margin-top: 15px;
        }
        .geofence-item {
            padding: 12px;
            background: #f8f9fa;
            border-radius: 4px;
            margin-bottom: 10px;
            border-left: 4px solid #000;
            cursor: pointer;
            transition: all 0.2s;
        }
        .geofence-item:hover {
            background: #e9ecef;
            transform: translateX(2px);
        }
        .geofence-item.selected {
            background: #d1ecf1;
            border-left-color: #2ecc71;
        }
        .geofence-type {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            margin-right: 8px;
        }
        .type-route {
            background: #000;
            color: white;
        }
        .type-station {
            background: #9b59b6;
            color: white;
        }
        .type-hotspot {
            background: #e74c3c;
            color: white;
        }
        .type-regular {
            background: #95a5a6;
            color: white;
        }
        .geofence-name {
            font-weight: 600;
            margin-bottom: 4px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .geofence-description {
            font-size: 13px;
            color: #666;
            margin-bottom: 4px;
        }
        .geofence-actions {
            display: flex;
            gap: 10px;
            margin-top: 8px;
            flex-wrap: wrap;
        }
        .action-btn {
            padding: 4px 12px;
            border: 1px solid #ddd;
            background: white;
            border-radius: 4px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .action-btn:hover {
            background: #f0f0f0;
        }
        .action-btn.assign {
            background: #2ecc71;
            color: white;
            border-color: #2ecc71;
        }
        .action-btn.assign:hover {
            background: #27ae60;
        }
        .action-btn.edit {
            background: #000;
            color: white;
            border-color: #000;
        }
        .action-btn.edit:hover {
            background: #2980b9;
        }
        .action-btn.delete {
            background: #e74c3c;
            color: white;
            border-color: #e74c3c;
        }
        .action-btn.delete:hover {
            background: #c0392b;
        }
        .action-btn.view {
            background: #9b59b6;
            color: white;
            border-color: #9b59b6;
        }
        .action-btn.view:hover {
            background: #8e44ad;
        }
        .station-list {
            max-height: 300px;
            overflow-y: auto;
            margin-top: 10px;
        }
        .station-item {
            padding: 8px;
            background: #f8f9fa;
            border-radius: 4px;
            margin-bottom: 5px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .station-info {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .station-type {
            font-size: 11px;
            background: #9b59b6;
            color: white;
            padding: 2px 6px;
            border-radius: 10px;
        }
        .device-assignment {
            background: #f8f9fa;
            border-radius: 6px;
            padding: 15px;
            margin-top: 20px;
            border: 1px solid #e9ecef;
        }
        .form-scroll {
            flex: 1;
            overflow-y: auto;
            padding-right: 5px;
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .field-group {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }
        .color-picker {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .color-picker {
            position: static !important;
            right: 0;
        }
        .color-picker input[type="color"] {
            width: 40px;
            height: 40px;
            padding: 0;
            border: 1px solid #ddd;
            border-radius: 4px;
            cursor: pointer;
        }
        .map-controls {
            position: absolute;
            top: 10px;
            right: 10px;
            z-index: 1000;
            background: white;
            border-radius: 4px;
            padding: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .map-controls button {
            padding: 8px 12px;
            background: #000;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .map-controls button:hover {
            background: #2980b9;
        }
        .map-controls button.active {
            background: #1a5276;
        }
        .legend {
            position: absolute;
            bottom: 10px;
            left: 10px;
            background: white;
            border-radius: 4px;
            padding: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            z-index: 1000;
        }
        .legend-item {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 5px;
        }
        .legend-color {
            width: 20px;
            height: 10px;
            border-radius: 2px;
        }
        .legend-route {
            background: #000;
        }
        .legend-station {
            background: #9b59b6;
        }
        .legend-hotspot {
            background: #e74c3c;
        }
        .legend-geofence {
            background: #95a5a6;
        }
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 2000;
            align-items: center;
            justify-content: center;
        }
        .modal-content {
            background: white;
            border-radius: 8px;
            padding: 25px;
            width: 90%;
            max-width: 600px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 4px 20px rgba(0,0,0,0.2);
        }
        .modal-header {
            display: flex;
            justify-content: right  !important;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #000;
        }
        .close-modal {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: #666;
        }
        .close-modal:hover {
            color: #333;
        }
        .status-badge {
            display: inline-block;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
            margin-left: 8px;
        }
        .status-active {
            background: #d5edda;
            color: #155724;
        }
        .status-inactive {
            background: #f8d7da;
            color: #721c24;
        }
        .status-maintenance {
            background: #fff3cd;
            color: #856404;
        }
        .action-icons {
            display: flex;
            gap: 8px;
        }
        .action-icon {
            cursor: pointer;
            color: #666;
            transition: color 0.2s;
        }
        .action-icon:hover {
            color: #000;
        }
        .action-icon.delete:hover {
            color: #e74c3c;
        }
        .filter-controls {
            background: #f8f9fa;
            border-radius: 6px;
            padding: 15px;
            margin-bottom: 15px;
            border: 1px solid #e9ecef;
        }
        .filter-options {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 10px;
        }
        .filter-option {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .search-box {
            margin-bottom: 15px;
        }
        .search-box input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
        }
        .edit-mode {
            background: #fff3cd !important;
            border-left-color: #f1c40f !important;
        }

        /* ===== Notification Dropdown ===== */
.notification-menu .dropdown-menu {
    width: 380px;
    padding: 0;
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.2), 0 10px 15px -6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: #fff;
    max-height: 500px;
    overflow-y: auto;
}

/* Header */
.notification-menu .not-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #f8fafc;
    font-weight: 600;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
}

.notification-menu .not-head .badge-count {
    background: #2A6DF4;
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

/* Divider */
.notification-menu .divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0;
}

/* Individual notification item */
.notification-menu .notification-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    transition: background 0.2s;
    border-bottom: 1px solid #f1f5f9;
    cursor: default;
    position: relative;
}

.notification-menu .notification-item:hover {
    background: #f8fafc;
}

.notification-menu .notification-item.unread {
    background: #f0f9ff;
    border-left: 4px solid #2A6DF4;
}

/* Clickable content area */
.notification-menu .notification-content {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

/* Icon circle */
.notification-menu .notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #2A6DF4;
    font-size: 18px;
    flex-shrink: 0;
}

/* Text details */
.notification-menu .notification-details {
    flex: 1;
    min-width: 0;
}

.notification-menu .notification-title {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-menu .notification-time {
    font-size: 12px;
    color: #64748b;
}

/* Action buttons */
.notification-menu .notification-actions {
    display: flex;
    gap: 8px;
    margin-left: 8px;
    flex-shrink: 0;
}

.notification-menu .action-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.notification-menu .action-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.notification-menu .action-btn.read-btn:hover {
    background: #10b981;
    color: white;
}

.notification-menu .action-btn.attend-btn:hover {
    background: #2A6DF4;
    color: white;
}

/* Attended label */
.notification-menu .attended-label {
    font-size: 12px;
    color: #10b981;
    font-weight: 500;
    background: #e6f7ee;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Footer */
.notification-menu .not-footer {
    padding: 14px 16px;
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.notification-menu .not-footer a {
    color: #2A6DF4;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.notification-menu .not-footer a:hover {
    text-decoration: underline;
}

/* Empty & error states */
.notification-menu .empty-state,
.notification-menu .error-state {
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.notification-menu .empty-state i,
.notification-menu .error-state i {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
    color: #cbd5e1;
}

/* Badge pulse animation */
.header-badge {
    transition: transform 0.2s;
}

.header-badge.has-notifications {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ===== Attend Modal ===== */
#attendModal .modal-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 24px;
    max-width: 450px;
    width: 90%;
    margin: 10vh auto;
    border: none;
}

#attendModal h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #0f172a;
}

#attendModal textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#attendModal textarea:focus {
    outline: none;
    border-color: #2A6DF4;
    box-shadow: 0 0 0 4px rgba(42, 109, 244, 0.15);
}

#attendModal .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

#attendModal .btn-cancel,
#attendModal .btn-confirm {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

#attendModal .btn-cancel {
    background: #f1f5f9;
    color: #334155;
}

#attendModal .btn-cancel:hover {
    background: #e2e8f0;
}

#attendModal .btn-confirm {
    background: #2A6DF4;
    color: white;
}

#attendModal .btn-confirm:hover {
    background: #1a4fc4;
    transform: translateY(-1px);
}