* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    height: 100vh;
    font-family: Arial, sans-serif;
    color: #333;
}

#sidebar {
    width: 380px;
    background-color: #f8f9fa;
    padding: 20px;
    border-right: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

#map {
    flex-grow: 1;
    height: 100%;
}

h2, h3 {
    margin-bottom: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 8px;
}

.form-group input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.info-panel {
    background: #e9ecef;
    padding: 15px;
    border-radius: 6px;
    font-size: 0.9em;
}

.info-panel ol {
    margin-left: 20px;
    margin-bottom: 10px;
}

button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

button.secondary {
    background-color: #6c757d;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-small {
    width: auto;
    flex: 1;
    padding: 6px 10px;
    margin-bottom: 0;
    font-size: 0.85em;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-edit {
    background-color: #ffc107;
    color: #000;
}

.btn-edit:hover {
    background-color: #e0a800;
}

#clearBtn {
    background-color: #dc3545;
}

#clearBtn:hover {
    background-color: #c82333;
}

#exportBtn {
    background-color: #28a745;
}

#exportBtn:hover {
    background-color: #218838;
}

#pointsList {
    list-style: none;
    font-size: 0.85em;
}

#pointsList li {
    padding: 12px;
    background: #fff;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.point-actions {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

/* Modal Styling */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}


/* Delivery ID Tooltip Styling */
.delivery-tooltip { background-color: rgba(255, 255, 255, 0.9); border: 2px solid #007bff; border-radius: 4px; font-weight: bold; color: #007bff; padding: 2px 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.3); font-size: 11px; white-space: nowrap; }
