/* Custom styles for the application */

/* Editable table cells */
.editable-cell {
    cursor: pointer;
    position: relative;
}

.editable-cell:hover {
    background-color: var(--bs-gray-200);
}

.editable-cell:hover::after {
    content: "✏️";
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Toast container */
#toast-container {
    z-index: 1090;
}

/* Highlight row */
tr.highlight-row {
    background-color: var(--bs-warning-bg-subtle) !important;
    animation: highlight-pulse 2s ease-in-out;
}

@keyframes highlight-pulse {
    0% { background-color: var(--bs-warning-bg-subtle); }
    50% { background-color: var(--bs-warning); }
    100% { background-color: var(--bs-warning-bg-subtle); }
}

/* Delete button */
.delete-record-btn {
    color: var(--bs-danger);
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-record-btn:hover {
    color: var(--bs-danger-text-emphasis);
    transform: scale(1.1);
}

/* Map container styles */
.map-container {
    height: 500px;
    width: 100%;
    border-radius: 5px;
    z-index: 1;
    position: relative;
}

/* Map popup styles */
.map-popup {
    padding: 5px;
}

.map-popup h5 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.map-popup p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.map-popup .view-in-table {
    display: inline-block;
    margin-top: 5px;
    font-weight: bold;
}
