/**
 * Frontend Styles for Clientes Mapa Plugin
 */

/* Table Widget Styles */
.clientes-table-wrapper {
    width: 100%;
    margin: 20px 0;
}

.clientes-table-search {
    margin-bottom: 15px;
}

.clientes-search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.clientes-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.clientes-table thead {
    background: #f8f9fa;
}

.clientes-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    color: #495057;
}

.clientes-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #dee2e6;
}

.clientes-table tr:hover {
    background: #f8f9fa;
}

.clientes-no-results {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

/* Map Widget Styles */
.clientes-map-container {
    width: 100%;
    margin: 20px 0;
    position: relative;
}

.clientes-map {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    z-index: 1;
}

.clientes-map-info {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.clientes-map-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.clientes-map-summary {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.clientes-map-summary li {
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
}

/* Modal Styles */
.clientes-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.clientes-modal-content {
    background-color: #fff;
    padding: 0;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.clientes-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
}

.clientes-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.clientes-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.clientes-modal-close:hover {
    background-color: #f8f9fa;
    color: #333;
}

.clientes-modal-list {
    list-style: none;
    padding: 20px;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}

.clientes-modal-list li {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}

.clientes-modal-list li:last-child {
    border-bottom: none;
}

.clientes-modal-list li:hover {
    background: #f8f9fa;
}

/* Leaflet Customization */
.leaflet-popup-content-wrapper {
    border-radius: 4px;
}

.leaflet-popup-content {
    margin: 10px;
    font-size: 14px;
}

.leaflet-popup-content strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .clientes-map-summary {
        grid-template-columns: 1fr;
    }

    .clientes-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .clientes-table {
        font-size: 14px;
    }

    .clientes-table th,
    .clientes-table td {
        padding: 8px;
    }
}
