/* Styles pour le toggle de priorité haute */
.priority-toggle-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.priority-toggle-container:hover {
    border-color: #ffc107;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.priority-toggle-container.urgent {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffc107;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.priority-toggle-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.priority-toggle-container.urgent .priority-toggle-label {
    color: #856404;
}

.priority-toggle-label i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.priority-toggle-container.urgent .priority-toggle-label i {
    color: #ff6b35;
    animation: pulse 2s infinite;
}

/* Toggle switch moderne */
.priority-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #ced4da;
    overflow: hidden;
}

.priority-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
}

.priority-toggle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    border-radius: 15px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.priority-toggle.urgent {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    border-color: #ffc107;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.priority-toggle.urgent::before {
    transform: translateX(30px);
    background: linear-gradient(135deg, #ffffff 0%, #fff3cd 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.priority-toggle.urgent::after {
    transform: scaleX(1);
}

/* Effet de brillance */
.priority-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 2;
}

.priority-toggle.urgent::before {
    transform: translateX(30px);
    background: linear-gradient(135deg, #ffffff 0%, #fff3cd 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Icônes dans le toggle */
.priority-toggle .toggle-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    z-index: 3;
    transition: all 0.3s ease;
}

.priority-toggle .toggle-icon.off {
    left: 8px;
    color: #6c757d;
}

.priority-toggle .toggle-icon.on {
    right: 8px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
}

.priority-toggle.urgent .toggle-icon.off {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
}

.priority-toggle.urgent .toggle-icon.on {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

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

.priority-toggle-container {
    animation: slideIn 0.5s ease-out;
}

/* Effet de focus pour l'accessibilité */
.priority-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .priority-toggle-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .priority-toggle {
        width: 50px;
        height: 25px;
    }
    
    .priority-toggle::before {
        width: 17px;
        height: 17px;
    }
    
    .priority-toggle.urgent::before {
        transform: translateX(25px);
    }
}

/* État désactivé */
.priority-toggle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.priority-toggle:disabled:hover {
    transform: none;
}

/* Effet de ripple au clic */
.priority-toggle {
    position: relative;
    overflow: hidden;
}

.priority-toggle .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Badge de priorité */
.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: #856404;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
    animation: badgeAppear 0.5s ease-out;
}

.priority-badge i {
    animation: pulse 2s infinite;
}

@keyframes badgeAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
} 