﻿/* ============================================
   Styles spécifiques à ModalMoveShop
   ============================================ */

.shop-modal-info {
    margin-bottom: 20px;
    color: #666;
    font-size: var(--font-size-sm, 0.875rem);
}

.current-shop-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #2196F3;
}

.shop-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.current-shop-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.shop-search {
    margin-bottom: 15px;
}

    .shop-search input {
        width: 100%;
        padding: 12px 16px;
        border: 2px solid var(--border-color, #e0e0e0);
        border-radius: 8px;
        font-size: 14px;
        transition: all 0.2s ease;
    }

        .shop-search input:focus {
            outline: none;
            border-color: var(--primary-blue, #0077b6);
            box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
        }

        .shop-search input::placeholder {
            color: #999;
        }

/* ============================================
   GRILLE DES BOUTIQUES
   ============================================ */

.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
    background: var(--bg-secondary, #f9f9f9);
    border-radius: 8px;
    border: 1px solid var(--border-color, #e0e0e0);
}

/* ============================================
   CARTE DE BOUTIQUE
   ============================================ */

.shop-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card, #ffffff);
    border: 2px solid var(--border-color, #e0e0e0);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    min-height: 70px;
}

    .shop-card:hover {
        border-color: var(--primary-blue, #0077b6);
        background: var(--bg-accent, rgba(0, 119, 182, 0.05));
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .shop-card.selected {
        border-color: var(--primary-blue, #0077b6);
        background: linear-gradient(135deg, rgba(0, 119, 182, 0.08), rgba(72, 202, 228, 0.08));
        box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    }

        .shop-card.selected .shop-icon {
            background: var(--primary-blue, #0077b6);
            color: white;
        }

        .shop-card.selected .shop-name {
            color: var(--primary-blue, #0077b6);
        }

/* ============================================
   ICÔNE DE BOUTIQUE
   ============================================ */

.shop-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0f7ff, #e8f4fd);
    color: var(--primary-blue, #0077b6);
    flex-shrink: 0;
    transition: all 0.2s ease;
}

    .shop-icon svg {
        width: 24px;
        height: 24px;
        stroke-width: 2;
    }

.shop-card:hover .shop-icon {
    background: linear-gradient(135deg, var(--primary-blue, #0077b6), var(--secondary-color, #48cae4));
    color: white;
    transform: scale(1.05);
}

/* ============================================
   DÉTAILS DE LA BOUTIQUE
   ============================================ */

.shop-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.shop-name {
    font-weight: 600;
    color: var(--text-primary, #333);
    font-size: 15px;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.shop-address {
    color: var(--text-secondary, #666);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .shop-address::before {
        content: '';
        display: inline-block;
        width: 4px;
        height: 4px;
        background: var(--text-muted, #999);
        border-radius: 50%;
        flex-shrink: 0;
    }

/* ============================================
   INDICATEUR DE SÉLECTION
   ============================================ */

.shop-selected-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: var(--primary-blue, #0077b6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn 0.2s ease;
}

    .shop-selected-indicator svg {
        width: 14px;
        height: 14px;
        stroke-width: 3;
    }

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   ÉTAT VIDE
   ============================================ */

.no-shops-found {
    grid-column: 1 / -1;
    padding: 40px 30px;
    text-align: center;
    color: var(--text-secondary, #666);
    background: var(--bg-card, #ffffff);
    border-radius: 8px;
    border: 2px dashed var(--border-color, #e0e0e0);
}

    .no-shops-found::before {
        content: '🏪';
        display: block;
        font-size: 32px;
        margin-bottom: 12px;
        opacity: 0.5;
    }

/* ============================================
   INDICATEUR DE TRAITEMENT
   ============================================ */

.processing-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.08), rgba(72, 202, 228, 0.08));
    border-radius: 8px;
    margin-top: 16px;
    color: var(--primary-blue, #0077b6);
    font-weight: 500;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 119, 182, 0.2);
    border-top-color: var(--primary-blue, #0077b6);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   ALERTES
   ============================================ */

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* ============================================
   BADGES (pour la liste batch)
   ============================================ */

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-info {
    background: rgba(0, 119, 182, 0.15);
    color: #0077b6;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.badge-secondary {
    background: rgba(107, 114, 128, 0.15);
    color: #4b5563;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .shops-grid {
        grid-template-columns: 1fr;
        max-height: 250px;
    }

    .shop-card {
        padding: 12px;
    }

    .shop-icon {
        width: 40px;
        height: 40px;
    }

        .shop-icon svg {
            width: 20px;
            height: 20px;
        }

    .shop-name {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .current-shop-info {
        padding: 8px 12px;
    }

    .current-shop-name {
        font-size: 14px;
    }

    .shops-grid {
        max-height: 200px;
        gap: 8px;
        padding: 6px;
    }

    .shop-card {
        padding: 10px;
        gap: 10px;
    }
}
