/* Styles pour la page clients */

/* Styles des lignes du tableau de clients */
#clientsTable tbody tr:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

#clientsTable tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.05);
}

#clientsTable tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
    transition: background-color 0.2s ease;
    transform: translateY(-1px);
}

/* Styles pour l'en-tête moderne */
.page-header {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Styles pour les avatars clients */
.client-avatar .rounded-circle {
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%) !important;
    border: 2px solid rgba(255,255,255,0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Badges modernes pour les contacts */
.badge.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1) !important;
    color: #198754 !important;
    border: 1px solid rgba(25, 135, 84, 0.2);
    font-weight: 500;
}

.badge.bg-info-subtle {
    background-color: rgba(13, 202, 240, 0.1) !important;
    color: #0dcaf0 !important;
    border: 1px solid rgba(13, 202, 240, 0.2);
    font-weight: 500;
}

/* Styles pour les boutons d'action modernes */
.btn-group .btn {
    transition: all 0.3s ease;
    margin: 0 1px;
    border-radius: 0.375rem !important;
    position: relative;
    overflow: hidden;
}

.btn-group .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-group .btn:hover::before {
    left: 100%;
}

.btn-outline-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}

.btn-outline-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-outline-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    background-color: #dc3545;
    border-color: #dc3545;
}

/* Styles pour les cartes de client dans les modals */
.client-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.client-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Styles pour les informations du client */
.client-info-section {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.client-info-section h5 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 10px;
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 5px;
}

.client-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 5px 0;
}

.client-info-label {
    font-weight: 500;
    color: #6c757d;
    min-width: 120px;
}

.client-info-value {
    color: #495057;
    flex: 1;
    text-align: right;
}

/* Styles pour les badges de statut */
.status-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.status-badge.status-valid {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.1), rgba(25, 135, 84, 0.05));
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.status-badge.status-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.05));
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.status-badge.status-expired {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Styles pour le formulaire client */
.client-form-section {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 0.75rem;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.client-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
}

.client-form-section h6 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    font-size: 1.1rem;
}

/* Alignement parfait pour les champs de documents */
.client-form-section .form-group {
    margin-bottom: 1rem;
    height: auto;
    display: flex;
    flex-direction: column;
}

.client-form-section .row.g-3 {
    margin-bottom: 1rem;
    align-items: end;
}

.client-form-section .row.g-3:last-child {
    margin-bottom: 0;
}

.client-form-section .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
    height: 1.5rem;
    line-height: 1.5rem;
    min-height: 1.5rem;
}

.client-form-section .form-control {
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    margin-top: auto;
}

/* Forcer l'alignement des colonnes */
.client-form-section .col-md-6 {
    display: flex;
    flex-direction: column;
}

.client-form-section .col-md-6 .form-group {
    height: 100%;
    justify-content: space-between;
}

/* Animations pour les champs de formulaire */
.form-control {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    transform: translateY(-1px);
}

/* Validation désactivée - utiliser les classes .is-valid et .is-invalid à la place */

/* Styles pour les indicateurs d'expiration */
.expiration-indicator {
    position: relative;
    display: inline-block;
}

.expiration-indicator::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.expiration-indicator.valid::after {
    background-color: #198754;
}

.expiration-indicator.warning::after {
    background-color: #ffc107;
}

.expiration-indicator.expired::after {
    background-color: #dc3545;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

/* Styles pour les modals clients */
.client-modal .modal-content {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.client-modal .modal-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0dcaf0 100%);
    color: white;
    border-bottom: none;
    padding: 20px 25px;
    position: relative;
}

.client-modal .modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.client-modal .modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.client-modal .modal-header .btn-close:hover {
    opacity: 1;
}

.client-modal .modal-body {
    padding: 30px;
    background: #f8f9fa;
}

.client-modal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 20px 30px;
    background: white;
}

/* Styles pour les cartes de statistiques améliorées */
.client-stats-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    padding: 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: fadeInUp 0.6s ease forwards;
}

.client-stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.client-stats-card:hover::before {
    left: 100%;
}

.client-stats-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.client-stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.client-stats-label {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.client-stats-card.text-primary .client-stats-number {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.client-stats-card.text-success .client-stats-number {
    background: linear-gradient(135deg, #198754, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.client-stats-card.text-info .client-stats-number {
    background: linear-gradient(135deg, #0dcaf0, #17a2b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.client-stats-card.text-warning .client-stats-number {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Styles pour l'en-tête de carte moderne */
.card.shadow-sm {
    border-radius: 1rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.card.shadow-sm:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.card-header.bg-white {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%) !important;
    border-bottom: 2px solid #e9ecef !important;
}

.table-light th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: #495057;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dee2e6;
}

/* Responsive design */
@media (max-width: 768px) {
    .client-info-row {
        flex-direction: column;
        text-align: left;
    }
    
    .client-info-value {
        text-align: left;
        margin-top: 5px;
    }
    
    .client-form-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .btn-group .btn {
        margin: 2px 1px;
        padding: 0.25rem 0.5rem;
    }
    
    .client-stats-card {
        margin-bottom: 15px;
    }
    
    .page-header {
        font-size: 2rem;
    }
    
    .client-avatar .rounded-circle {
        width: 35px !important;
        height: 35px !important;
        font-size: 0.8rem;
    }
}

/* Styles pour l'autocomplétion dans les formulaires clients */
.client-search-container {
    position: relative;
}

.client-suggestions {
    position: absolute;
    z-index: 1050;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    display: none;
    top: 100%;
    left: 0;
}

.client-suggestion-item {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s ease;
}

.client-suggestion-item:hover,
.client-suggestion-item.active {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(5px);
}

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

/* Animation d'entrée pour les éléments */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.client-stats-card:nth-child(2) { animation-delay: 0.1s; }
.client-stats-card:nth-child(3) { animation-delay: 0.2s; }
.client-stats-card:nth-child(4) { animation-delay: 0.3s; }

/* Amélioration des tooltips */
.tooltip-inner {
    background: linear-gradient(135deg, #495057, #6c757d);
    border-radius: 0.5rem;
    padding: 8px 12px;
    font-size: 0.85rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* =================================================================
   STYLES POUR LES ONGLETS PARTICULIER/ENTREPRISE
   ================================================================= */

/* Sélecteur de type de client */
.client-type-selector {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    position: relative;
    overflow: hidden;
}

.client-type-selector::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #6610f2, #0dcaf0);
}

.client-type-selector .btn-group {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.client-type-selector .btn {
    border: none;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.client-type-selector .btn:not(.active) {
    background: #fff;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.client-type-selector .btn:hover:not(.active) {
    background: #f8f9fa;
    color: #495057;
    transform: translateY(-1px);
}

.client-type-selector .btn.active,
.client-type-selector .btn:checked + label {
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    color: white;
    border: 1px solid #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* Animation de transition entre onglets */
.client-content {
    transition: all 0.4s ease;
    min-height: 400px;
}

.client-content:not([style*="display: none"]) {
    animation: fadeInSlide 0.4s ease forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Styles spécifiques pour les sections entreprise */
#entreprise_content .client-form-section h6 {
    color: #0dcaf0;
}

#entreprise_content .form-control {
    border-left: 3px solid #0dcaf0;
}

#entreprise_content .form-control:focus {
    border-left-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Styles pour les champs particuliers */
#particulier_content .client-form-section h6 {
    color: #198754;
}

#particulier_content .form-control {
    border-left: 3px solid #198754;
}

#particulier_content .form-control:focus {
    border-left-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Amélioration responsive pour les onglets */
@media (max-width: 768px) {
    .client-type-selector {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .client-type-selector .btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .client-content {
        min-height: 350px;
    }
}

/* =================================================================
   STYLES POUR LE CONTEXTE MAROCAIN
   ================================================================= */

/* Alerte informative pour les identifiants marocains */
.alert-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

.alert-info.alert-sm {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.1), rgba(13, 202, 240, 0.05));
    border: 1px solid rgba(13, 202, 240, 0.2);
    color: #055160;
}

.alert-info.alert-sm i {
    color: #0dcaf0;
}

/* Tooltips pour les identifiants marocains */
.text-info[data-bs-toggle="tooltip"] {
    cursor: help;
    font-size: 0.875rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.text-info[data-bs-toggle="tooltip"]:hover {
    opacity: 1;
}

/* =================================================================
   STYLES POUR L'UPLOAD ET PREVIEW DES DOCUMENTS
   ================================================================= */

/* Zone d'upload générale */
.upload-zone {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 20px;
    border: 2px dashed #dee2e6;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.05);
}

/* Cartes d'upload individuelles */
.upload-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.upload-card:hover {
    border-color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

/* Section d'information de l'upload */
.upload-info {
    margin-bottom: 15px;
}

.upload-info i {
    color: #6c757d;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.upload-card:hover .upload-info i {
    color: #0d6efd;
}

.upload-info div {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.upload-info small {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Actions d'upload */
.upload-actions {
    margin-bottom: 15px;
}

.upload-actions .btn {
    margin: 0 5px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.upload-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Zone de preview */
.upload-preview {
    min-height: 80px;
    border-radius: 0.375rem;
    background: rgba(0,0,0,0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.upload-preview:empty {
    background: transparent;
}

/* Styles pour les fichiers uploadés */
.uploaded-file-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.uploaded-file-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #0d6efd;
}

/* Images dans les previews */
.uploaded-file-preview img {
    max-width: 100%;
    max-height: 80px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.uploaded-file-preview img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Icônes pour les fichiers non-image */
.uploaded-file-preview .file-icon {
    padding: 10px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.uploaded-file-preview .file-icon i {
    display: block;
    margin: 0;
}

/* Informations du fichier */
.uploaded-file-preview .file-info {
    text-align: center;
    flex-grow: 1;
}

.uploaded-file-preview .file-name {
    display: block;
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    margin-bottom: 2px;
    word-break: break-word;
}

.uploaded-file-preview .file-details {
    display: block;
    color: #6c757d;
    font-size: 0.75rem;
}

/* Actions sur les fichiers */
.uploaded-file-preview .file-actions {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 8px;
}

.uploaded-file-preview .file-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.uploaded-file-preview .file-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Boutons de suppression */
.remove-file-btn {
    background: transparent;
    border: 1px solid #dc3545;
    color: #dc3545;
}

.remove-file-btn:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Animation d'apparition pour les previews */
.upload-preview .uploaded-file-preview {
    animation: fadeInScale 0.4s ease forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Styles responsive pour l'upload */
@media (max-width: 768px) {
    .upload-zone {
        padding: 15px;
    }

    .upload-card {
        padding: 15px;
        min-height: 140px;
    }

    .uploaded-file-preview {
        padding: 10px;
        max-width: 100%;
    }

    .uploaded-file-preview img {
        max-height: 60px;
    }

    .upload-actions .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
        margin: 2px;
    }

    .uploaded-file-preview .file-actions {
        flex-direction: column;
        gap: 3px;
    }

    .uploaded-file-preview .file-actions .btn {
        width: 100%;
        font-size: 0.7rem;
    }
}

/* Indicateurs de statut pour les documents */
.upload-card.has-file {
    border-color: #198754;
    background: rgba(25, 135, 84, 0.02);
}

.upload-card.has-file .upload-info i {
    color: #198754;
}

/* États d'erreur pour l'upload */
.upload-card.error {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.02);
}

.upload-card.error .upload-info i {
    color: #dc3545;
}

/* Loading state */
.upload-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.upload-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #0d6efd;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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