/* 
 * Leaflet React Map Checklist Styles 
 * Clean implementation with only essential styling
 */

/* Container */
.leaflet-react-map-checklist {
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

/* Table */
table.leaflet-react-map-checklist-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 14px;
}

table.leaflet-react-map-checklist-table th,
table.leaflet-react-map-checklist-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* Table Header */
table.leaflet-react-map-checklist-table thead th {
    background: transparent !important;
    background-color: transparent !important;
    font-weight: bold;
    color: #fff !important; /* White text for all headers */
}

/* Explicitly prevent header from inheriting hover styles */
table.leaflet-react-map-checklist-table thead th:hover {
    background: transparent !important;
    background-color: transparent !important;
}

/* Hover effect for table rows (only td in tbody) */
table.leaflet-react-map-checklist-table tbody tr:hover td {
    background-color: #e0f7fa !important; /* Light cyan for hover */
    color: #333 !important; /* Dark text for readability on hover */
}

/* Columns */
table.leaflet-react-map-checklist-table .col-found {
    width: 50px;
    text-align: center;
}

/* Ensure td in col-found has readable text */
table.leaflet-react-map-checklist-table td.col-found {
    color: #333 !important; /* Dark text for td only, not th */
}

table.leaflet-react-map-checklist-table .col-map {
    width: 100px;
    text-align: center;
}

/* Loading state */
.leaflet-checklist-loading {
    padding: 20px;
    text-align: center;
    font-style: italic;
    color: #666;
}

/* Found indicator */
.found-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-weight: bold;
    color: #fff;
    background-color: #f0f0f0;
}

.found-indicator.is-found {
    background-color: #4CAF50;
    border-color: #388E3C;
}

/* Found item styling */
table.leaflet-react-map-checklist-table tr.marker-found td.col-name {
    text-decoration: line-through;
}

/* Show Map button */
.show-map-btn {
    padding: 5px 10px;
    background-color: #3288ce;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.show-map-btn:hover {
    background-color: #2978b5;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    table.leaflet-react-map-checklist-table th,
    table.leaflet-react-map-checklist-table td {
        padding: 6px 8px;
        font-size: 13px;
    }
    
    table.leaflet-react-map-checklist-table .col-description {
        display: none;
    }
}