/**
 * businessRadiusStyles.css v1.0.0
 * Estilos para el módulo businessRadiusManager
 * Compatible con GeoRadio
 */

/* Estilos para los botones de radio en popups */
.btn-show-radius {
    flex: 1 1 100%;
    padding: 8px 12px;
    font-size: 0.9em;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    font-weight: 500;
}

.btn-show-radius:hover {
    background-color: #e0e0e0;
    border-color: #bbb;
}

.btn-show-radius:active {
    background-color: #d0d0d0;
    transform: translateY(1px);
}

/* Variante activa del botón */
.btn-show-radius.active {
    background-color: #e3f2fd;
    border-color: #2196F3;
    color: #0d47a1;
}

/* Estilos para el popup de radio de negocio */
.popup-content {
    padding: 8px;
    max-width: 250px;
}

.popup-content strong {
    display: block;
    font-size: 1.1em;
    margin-bottom: 5px;
    color: #333;
}

.popup-content p {
    margin: 4px 0;
    font-size: 0.9em;
    color: #555;
}

/* Estilos específicos para los círculos de radio según categoría */
.radius-transport-circle {
    stroke: #FF6F00;
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    fill: #FF9800;
    fill-opacity: 0.1;
}

.radius-delivery-circle {
    stroke: #C2185B;
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    fill: #E91E63;
    fill-opacity: 0.1;
}

.radius-services-circle {
    stroke: #303F9F;
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    fill: #3F51B5;
    fill-opacity: 0.1;
}

.radius-default-circle {
    stroke: #388E3C;
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    fill: #4CAF50;
    fill-opacity: 0.1;
}

/* Estilos para notificaciones de transportistas disponibles */
.georadio-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 300px;
    padding: 12px 15px;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1000;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border-left: 4px solid #2196F3;
}

.georadio-notification.info {
    border-left-color: #2196F3;
}

.georadio-notification.success {
    border-left-color: #4CAF50;
}

.georadio-notification.warning {
    border-left-color: #FF9800;
}

.georadio-notification.error {
    border-left-color: #F44336;
}

.georadio-notification-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.georadio-notification-message {
    color: #555;
}

/* Control de capa para radios de negocios */
.business-radius-control {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
    padding: 8px;
}

.business-radius-control h4 {
    margin: 0 0 8px 0;
    font-size: 1em;
    font-weight: 500;
}

.business-radius-control-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.business-radius-control-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 8px;
}

.business-radius-control-label {
    font-size: 0.9em;
    color: #333;
}

/* Estilos para el contenedor de lista de transportistas */
.transportistas-list {
    padding: 10px;
    max-height: 300px;
    overflow-y: auto;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.transportista-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.transportista-item:last-child {
    border-bottom: none;
}

.transportista-item:hover {
    background-color: #f5f5f5;
}

.transportista-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.transportista-item-name {
    font-weight: 500;
    color: #333;
}

.transportista-item-category {
    font-size: 0.8em;
    padding: 2px 8px;
    border-radius: 10px;
    color: white;
    background-color: #9E9E9E;
}

.transportista-item-category.transporte {
    background-color: #FF9800;
}

.transportista-item-category.reparto {
    background-color: #E91E63;
}

.transportista-item-category.servicios {
    background-color: #3F51B5;
}

.transportista-item-info {
    font-size: 0.85em;
    color: #666;
}

/* Estilos para la información de radio y precio */
.transportista-radio-info {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.8em;
    color: #555;
}

/* Botones pequeños genéricos para GeoRadio */
.georadio-button-small {
    padding: 6px 10px;
    font-size: 0.85em;
    text-align: center;
    border-radius: 3px;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.georadio-button-small:hover {
    background-color: #e0e0e0;
}

/* Estilos para overlay de carga */
.georadio-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.georadio-loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}